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 Kommentare

Bo
Bo am 5 Feb. 2018
Birdman
Birdman am 5 Feb. 2018
You need to share the model.
Bo
Bo am 6 Feb. 2018
Bearbeitet: Bo am 6 Feb. 2018
@Birdman Thank you for your reply. My model is available from https://github.com/cnpcshangbo/simscapeFOPD
Birdman
Birdman am 6 Feb. 2018
You just need to share the file with .mdl extension. Not the entire project.
Bo
Bo am 6 Feb. 2018
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 am 6 Feb. 2018
The part that I took screenshot is in Quadrotor_Controller.slx. You'll need to open the External Force block. Thanks.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Nicolas Schmit
Nicolas Schmit am 9 Feb. 2018

1 Stimme

Replace the 6-DOF joint with a prismatic joint.

Weitere Antworten (0)

Kategorien

Mehr zu Simscape Multibody finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by