Logging CSV file using Crazyflie lib

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
mouraphilipe
Beginner
Posts: 1
Joined: Mon May 27, 2019 11:05 am

Logging CSV file using Crazyflie lib

Post by mouraphilipe » Mon May 27, 2019 11:22 am

Hello,

I am currently adapting the "position_commander_demo.py" from Crazyflie lib to program my crazyflie to keep going back and forth two coordinates (let's say (-1, -1, 1) and (1, 1, 1)). I would like to know if there is a simple way to log its position (X, Y, Z) in a CSV file, similarly to the CSV file created when using the cfclient GUI. If there isn't, what should I do in order to generate a cfclient-like CSV file?

I've seen the "basiclog.py" example, but as fas as I understood, it only prints information to the console. I've also seen "logdatawriter.py" (within the cfclient folder), but I couldn't manage to use it within the cflib scope.

Thanks in advance for any suggestions,

Post Reply