Skip to content

External MPC controller not working properly #111

@rakesh55ydv

Description

@rakesh55ydv

Hello gsilano,
Thanks for you work in creating this wonderful models to work in SITL. I am facing several issues:

  1. I created an MPC controller in matlab to track a helical trajectory and it is working fine. However, when I publish the omega of the rotors in the topic /crazyflie2/gazebo/command/motor_speed , it is not behaving as it should be and model becomes unstable. I played with the rates of the controllers. However, it did not have any affect in the simulation.
  2. Therefore, I decided to use inbuilt position_controller_node.cpp by passing the states coming from my MPC controller in the topic called /crazyflie2/command/trajectory. The position controller node keeps the crazyflie stable, but it is very slow and could not track the trajectory I am publishing. I have kept the trajectory publishing rate fairly low.

Are there any suggestions on how can I make my external controller work ? How to use the inbuilt controllers in this scenario ?

Thanks,
rakesh55ydv

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions