Logging the Data When the CrazyFlie is Flying Autonomously

Firmware/software/electronics/mechanics
Post Reply
SaiRam435
Beginner
Posts: 1
Joined: Mon Jul 09, 2018 9:22 pm

Logging the Data When the CrazyFlie is Flying Autonomously

Post by SaiRam435 » Mon Jul 09, 2018 9:31 pm

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

simplexsigil
Beginner
Posts: 13
Joined: Thu Feb 01, 2018 3:42 pm

Re: Logging the Data When the CrazyFlie is Flying Autonomously

Post by simplexsigil » Tue Aug 14, 2018 2:42 pm

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

whoenig
Expert
Posts: 270
Joined: Mon Oct 27, 2014 2:55 am

Re: Logging the Data When the CrazyFlie is Flying Autonomously

Post by whoenig » Wed Aug 15, 2018 12:02 am

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.

Post Reply