[SOLVED] Read crazyflie height data from flow deck

Post here to get support
Post Reply
lizard
Beginner
Posts: 4
Joined: Wed Jan 08, 2020 12:17 am

[SOLVED] Read crazyflie height data from flow deck

Post by lizard »

We are new to the crazyflie and trying to play with the flow deck and some lib python code. We are wondering is it possible to read the current altitude through the python code and how?

Edit: I successfully used the basiclog.py to read the estimate.z data, however, how can I read data during flight?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Read crazyflie height data from flow deck

Post by arnaud »

If you make a python script that makes the Crazyflie fly (following some of the other examples in the crazyflie lib example folder), you can use the log subsystem to get the height at the same time as flying.

If you are flying from the PC client, you can setup a log block using the log configuration box, and use the plotter tab to plot the height in real-time and use the "log block" tab to record the log block measurements in a CSV file. The logs are recorded in the config folder accessible from the setting menu in the client.
lizard
Beginner
Posts: 4
Joined: Wed Jan 08, 2020 12:17 am

Re: Read crazyflie height data from flow deck

Post by lizard »

Thank you so much, I have successfully read the altitude during the flight.
Post Reply