Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New quadrotor Parrot Bebop simulation #28

Open
jwangjie opened this issue Mar 27, 2019 · 1 comment
Open

New quadrotor Parrot Bebop simulation #28

jwangjie opened this issue Mar 27, 2019 · 1 comment

Comments

@jwangjie
Copy link

Hi there,

I am trying to use the package to control a Parrot Bebop together with rotors_simulator. The newly added quadrotor flies well using the lee_position_controller in rotors_simulator, but crashed quickly when trying to use either linear or nonlinear MPC. I added a configuration file similar to PID_attitude_hummingbird.yaml with inertia tensor, arm length modifications, and I guess the immediate crash may because of the allocation_matrix. I wonder could you help me with this? Thank you so much for any advice.

Regards,
Jie

@sahiedu
Copy link

sahiedu commented Nov 17, 2020

Hi!
Recently I found a way of using the mav_linear_mpc controller with the BebopS simulator of G. Silano. You are right, you need to use the appropriate allocation matrix. After some analysis, I ended up with this configuration:

allocation_matrix: [0.0, -1.0, -1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, -1.0, 1.0, -1.0, 0.0, 1.0, 1.0]

PD: Don't forget to edit this line as follows:

sampling_time: 0.004 #IMPORTANT: set this equal to the rate of odometry msg

Inside your mav_linear_mpc/resources/MAV_NAME_linear_mpc.yaml file. This is according to the publishing rate of the odometry inside the Bebop simulator (250 Hz in this case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants