RflySim / RflyExpCode

Multicopter Design and Control Experiments based on MATLAB and PixHawk
https://rflysim.com
176 stars 92 forks source link

stability #51

Open DIMAH1234 opened 3 years ago

DIMAH1234 commented 3 years ago

I have tried to implement the exemple of attitude control of a quarotor using simulink and pixhawk, the code is well generated and implemeted on the board

Ones I armed the motors I observed that some turns alone, and when I try to fly, the quadcopter seems unstable

please if you have any suggestions

RflySim commented 3 years ago

You can use the estimated state of Pixhawk from uORB message instead of using the raw sensor data. Besides, our demo is very simple, you should add logic to initialize the controller according to the Pixhawk state.