Page 1 of 1

Crazyflie 2.1 - Acceleration measurement

Posted: Tue Apr 26, 2022 4:30 am
by vannem
I am using crazyflie 2.1 for my project and I need a good estimate of the drone acceleration. I tried using finite differencing of position but it was very noisy so looking for more accurate methods.

Re: Crazyflie 2.1 - Acceleration measurement

Posted: Tue Apr 26, 2022 7:25 am
by kristoffer
Maybe the accelerometers?

Re: Crazyflie 2.1 - Acceleration measurement

Posted: Wed Apr 27, 2022 12:44 am
by vannem
Hey kristoffer, how do you access the accelerometer data?

Re: Crazyflie 2.1 - Acceleration measurement

Posted: Wed Apr 27, 2022 7:14 am
by kristoffer
The data is available as log values.

You can read about the log and param framework here: https://www.bitcraze.io/documentation/r ... /logparam/
And about how to plot log data in the client here: https://www.bitcraze.io/documentation/r ... otter_tab/

All logs are documented here: https://www.bitcraze.io/documentation/r ... /logs/#acc
The accelerometers can be found in the acc group
You might also be interested in the acceleration estimated by the estimator, they can be found in the stateEstimate group

There is a step-by-step guide for how to use logs from the python lib here: https://www.bitcraze.io/documentation/r ... log_param/