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 »

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,
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Logging CSV file using Crazyflie lib

Post by kimberly »

This is an python specific problem. If you google 'python write csv', there should be plenty instructions on how to do this.
Post Reply