Unable to understand how the decompress quaternion from 'stateEstimateZ.quat' #560
Unanswered
ReanFernandes
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hi! This log is mostly used in the Crazyswarm(2) framework, so there is only an c++ example here: Technically... we should have this function in our cflib as well.. but it hasn't been implemented, so I hope that the c++ library could give some pointers. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the python api to get the compressed information from my drone, which include the compressed quaternion obtained from 'stateEstimateZ.quat'. The page containing the logging variable information however, has incomplete documentation, with a link that i think was not added ( https://www.bitcraze.io/documentation/repository/crazyflie-firmware/master/api/logs/#stateestimatez ).
While checking the code given at (https://github.com/bitcraze/crazyflie-firmware-experimental/blob/master/src/modules/interface/quatcompress.h), I am unable to grasp what the order of the quaternions return by the decompress function will be. I assume it should be of the form [qw, qx, qy, qz], but i would like it if you could clarify this for me.
Also If there is something that is missing in the logging variable page, I request you to update it so that we can use it without this confusion.
I hope my question was clear, and if not I will be glad to give you more information.
Thank you for your time! :)
Beta Was this translation helpful? Give feedback.
All reactions