Replies: 2 comments 1 reply
-
At Bitcraze, we don’t actively use MATLAB ourselves, so we might not be the best to help with MATLAB-specific issues. However, what we can help with is understanding the Crazyflie coordinate system and making sure your transformation is correct. Carefully going over the coordinate transformations and ensuring correct conversions would be a good place to start. That said, others in the community may have worked with MATLAB and Crazyflie data before. It might be worth reaching out to see if someone with MATLAB experience can share their insights. Let us know if you have specific questions about the Crazyflie’s coordinate system—we’re happy to help with that! |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response! While research for repositories was also helpful, I noticed that I load my gyro data in the wrong unit (deg/s instead of rad/s). |
Beta Was this translation helpful? Give feedback.
-
I need to work with the data of the Crazyflie 2.0 IMU. Therefore i created a log with the microSD adapter. I converted the data to a csv and then to mat-file.
When i now try to use Matlab Complementary Filter (https://de.mathworks.com/help/nav/ref/complementaryfilter-system-object.html) it always fails althrough I swapped x and y and changed the foresign of y also known as theta (to fit in general ENU instead of Crazyflie ENU).
I also tried just changing foresign of y without swapping axes.
Output of plot is the following:
Estimation makes no sense 😢
Matlab Complementary works with data not from the crazyflie (direct in general ENU).
What is the correct way in Matlab to do the convert for crazyflie data created with microsd adapter?
I really need to reach general ENU notation.
Thank you very much in advance
Script i used for convert from crazyflie binary to csv is the following:
The correct plot done with crazyflie example.py looks exactly:
Beta Was this translation helpful? Give feedback.
All reactions