mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-22 14:19:42 +01:00
The USB VCP Port has a new DebugConsole setting that routes all output destined for PIOS_COM_DEBUG to the emulated serial port. To enable this in your build, you'll have to build like: - make fw_coptercontrol_clean - make fw_coptercontrol ENABLE_DEBUG_CONSOLE=YES You can then output formatted text to the console like this: #if defined(PIOS_INCLUDE_DEBUG_CONSOLE) PIOS_COM_SendFormattedString(PIOS_COM_DEBUG, "foo is %u\r\n", foo); #endif /* PIOS_INCLUDE_DEBUG_CONSOLE */ Please ensure that all of your debug output is wrapped with these macros so that your debug code doesn't bloat the firmware image.
Description
The LibrePilot open source project was founded in July 2015. It focuses on research and development of software and hardware to be used in a variety of applications including vehicle control and stabilization, unmanned autonomous vehicles and robotics.
Languages
C
60.6%
C++
30.8%
Fortran
2.6%
Rich Text Format
1.3%
Assembly
1.2%
Other
3.1%