Page 1 of 1

Logging CSV file using Crazyflie lib

Posted: Mon May 27, 2019 11:22 am
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,

Re: Logging CSV file using Crazyflie lib

Posted: Fri Jun 28, 2019 11:06 am
by kimberly
This is an python specific problem. If you google 'python write csv', there should be plenty instructions on how to do this.