Skip to content

Crazyflie 2.1 IMU Data #171

Answered by krichardsson
GNC-JY asked this question in Q&A
Aug 3, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi!

The EKF is using quaternions internally and the quaternion data is available as log data in stateEstimate.qx, stateEstimate.qy, stateEstimate.qz, stateEstimate.qw
See https://github.com/bitcraze/crazyflie-firmware/blob/master/src/modules/src/stabilizer.c#L701-L719

It is also available as a compressed quaternion in stateEstimateZ.quat
See https://github.com/bitcraze/crazyflie-firmware/blob/master/src/modules/src/stabilizer.c#L776-L779

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@GNC-JY
Comment options

@krichardsson
Comment options

@GNC-JY
Comment options

@knmcguire
Comment options

Answer selected by GNC-JY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants