Page 1 of 1

[SOLVED] Read crazyflie height data from flow deck

Posted: Wed Jan 08, 2020 12:37 am
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?

Re: Read crazyflie height data from flow deck

Posted: Wed Jan 08, 2020 7:38 am
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.

Re: Read crazyflie height data from flow deck

Posted: Wed Jan 22, 2020 5:12 am
by lizard
Thank you so much, I have successfully read the altitude during the flight.