Replies: 1 comment 1 reply
-
Hi there, Our quadrotor examples use a 12-dim state model, hence, Euler angles are completely compatible. The quickest and easiest way is reuse our existing pipeline. You only need to convert Rodriguez and Euler angle representations at the input (feedback state) and output (trajectory) of the MPC problem. You can find it online here Otherwise, you need different A and B matrices, and then other precomputed variables. You may want to start from nonlinear dynamics with Euler angles first. For a better understanding of the entire workflow (even with the real hardware), we recommend you check this example. This should provide you with a sense of modeling as well as MPC implementation. You can see our actual Crazyflie model parameters (we guess-estimated them though), but the remaining MPC part is new and has not been tested on hardware. |
Beta Was this translation helpful? Give feedback.
-
Hi
I think it should be possible to swap the Rodriguez-parameter representation in your code with Euler-angles as TinyMPC generally works with and accelerates MPC problems , correct?
If yes, how does one get the information/ guess-estimate the Adyn_data, Bdyn_data, Pinf_data, Kinf_data, etc. for example for the Crazyflie 2.1?
Thank you for your time and effort :)
Beta Was this translation helpful? Give feedback.
All reactions