Page 1 of 1

Logging the Data When the CrazyFlie is Flying Autonomously

Posted: Mon Jul 09, 2018 9:31 pm
by SaiRam435
Hi Guys,

I recently started working on CrazyFlie 2.0 and i am successfully able to run this example.

https://www.hackster.io/chathuranga-liy ... ers-9b5382

And i want to log the data when the crazyFlie is Flying.

From that Example , i am able to log only 3 variables "Roll, Pitch and yaw".

But i need to log the (x,y,z) co-ordinates.

I have seen video Tutorial https://www.youtube.com/watch?v=chWrNh73YBw&t=251s , they are logging the data when it is flying but here the device is connected to USB Joy Stick or something else.

I want to do the same when it is flying.

Sensor used to measure the distance from the ground is FLowDeck.

If any of you guys have faced the same problem. Please help me out.

Best Regards
Sai

Re: Logging the Data When the CrazyFlie is Flying Autonomously

Posted: Tue Aug 14, 2018 2:42 pm
by simplexsigil
If you are already able to log roll pitch and yaw, then you just need the names of the respective logging variables.

The relevant logging variables for position are:
- kalman.stateX
- kalman.stateY
- kalman.stateZ
as far as I know.

More information is here:
https://wiki.bitcraze.io/projects:crazy ... rmware:log
https://wiki.bitcraze.io/doc:crazyflie: ... ex?s[]=log

Re: Logging the Data When the CrazyFlie is Flying Autonomously

Posted: Wed Aug 15, 2018 12:02 am
by whoenig
Note that logging over the radio will only give you data up to 100 Hz (but you get it in real-time). If you are interested in post-processing, a uSD card is a good solution, see https://wiki.bitcraze.io/projects:crazy ... ta_logging.