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
Logging the Data When the CrazyFlie is Flying Autonomously
-
- Beginner
- Posts: 13
- Joined: Thu Feb 01, 2018 3:42 pm
Re: Logging the Data When the CrazyFlie is Flying Autonomously
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
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
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.