mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
f0e0c2e79e
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. |
||
---|---|---|
.. | ||
board_hw_defs | ||
Bootloaders | ||
CopterControl | ||
Doc | ||
EntireFlash | ||
Libraries | ||
Modules | ||
OpenPilot/System | ||
PiOS | ||
PiOS.posix | ||
PiOS.win32 | ||
PipXtreme | ||
Project | ||
RemoteSystemsTempFiles | ||
Revolution | ||
SimPosix | ||
UAVObjects | ||
UAVTalk | ||
README.txt |
Check the wiki