Logging CSV file using Crazyflie lib
Posted: 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,
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,