How to fix a freedom in Simscape?

조회 수: 3 (최근 30일)
Bo
Bo 2018년 2월 5일
답변: Nicolas Schmit 2018년 2월 9일
Hi I am using the model from https://www.mathworks.com/videos/quadcopter-simulation-and-control-made-easy-93365.html
I know MATLAB and Simulink, but I am a newbie for Simscape.
What I am trying to do is fix the Quadrotor's pitch and roll axis. So that the drone's pitch and roll will not change any more. In this way, I could tune the drone's altitude controller by itself first.
As a new guy of Simscape, I think I need to change some settings in Transform or 6 DOF joint. But I've no idea where to change. I am also confused about the difference between Transform and 6 dof joint.
Any one can give me some ideas? Thanks,
  댓글 수: 6
Bo
Bo 2018년 2월 6일
I have made this public long ago. You can run this project and open the model from project shortcut. The models are .slx files now. https://github.com/cnpcshangbo/simscapeFOPD/tree/master/QuadRotor/Models
Bo
Bo 2018년 2월 6일
The part that I took screenshot is in Quadrotor_Controller.slx. You'll need to open the External Force block. Thanks.

댓글을 달려면 로그인하십시오.

채택된 답변

Nicolas Schmit
Nicolas Schmit 2018년 2월 9일
Replace the 6-DOF joint with a prismatic joint.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by