How to debug the crazyflie 2.0?

Firmware/software/electronics/mechanics
Post Reply
Eternal_Answer
Beginner
Posts: 2
Joined: Thu Mar 16, 2017 8:31 pm

How to debug the crazyflie 2.0?

Post by Eternal_Answer »

Is there any way to debug the crazyflie 2.0 so that I can write the code to send information while flying and my pc can receive the information and display on the screen?

Thanks
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: How to debug the crazyflie 2.0?

Post by arnaud »

Crazyflie has a log and param subsystem designed for that:
- Param allows to set and get variable values remotely. It is assumes that the variable are never modified by the firmware
- Log allows to periodically fetch variable values from the firmware

There is some info on the wiki: https://wiki.bitcraze.io/doc:crazyflie: ... h:logparam

Log and param can be used directly from the client, param can be modified and log can be plotted and recorded to csv. There is examples in the python lib to show how to use it in your python code: https://github.com/bitcraze/crazyflie-l ... ples.There is also support for log and param in the ROS crazyflie driver.
Eternal_Answer
Beginner
Posts: 2
Joined: Thu Mar 16, 2017 8:31 pm

Re: How to debug the crazyflie 2.0?

Post by Eternal_Answer »

arnaud wrote:Crazyflie has a log and param subsystem designed for that:
- Param allows to set and get variable values remotely. It is assumes that the variable are never modified by the firmware
- Log allows to periodically fetch variable values from the firmware

There is some info on the wiki: https://wiki.bitcraze.io/doc:crazyflie: ... h:logparam

Log and param can be used directly from the client, param can be modified and log can be plotted and recorded to csv. There is examples in the python lib to show how to use it in your python code: https://github.com/bitcraze/crazyflie-l ... ples.There is also support for log and param in the ROS crazyflie driver.
Thanks a lot. And I saw there are DEBUG_PRINT function in firmware code, how can I print those on my pc?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: How to debug the crazyflie 2.0?

Post by arnaud »

Yes there is a console subsystem. There is a function consolePrintf that is a simplified printff and that is printed tn the console tab in the client.
Post Reply