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
How to debug the crazyflie 2.0?
-
- Beginner
- Posts: 2
- Joined: Thu Mar 16, 2017 8:31 pm
Re: How to debug the crazyflie 2.0?
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.
- 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.
-
- Beginner
- Posts: 2
- Joined: Thu Mar 16, 2017 8:31 pm
Re: How to debug the crazyflie 2.0?
Thanks a lot. And I saw there are DEBUG_PRINT function in firmware code, how can I print those on my pc?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.
Re: How to debug the crazyflie 2.0?
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.