1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/flight/CopterControl/System
Stacey Sheldon f0e0c2e79e console: add debug console via USB CDC/VCP interface
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.
2012-10-11 00:51:09 -04:00
..
inc Merge remote-tracking branch 'origin/stac/rc-tx-joystick-emulation' into next 2012-08-11 11:21:18 -04:00
alarms.c Register some missing objects with their modules 2011-07-30 11:28:21 +09:00
coptercontrol.c Merge remote-tracking branch 'origin/kenz/PT_UI_fixes' into next 2012-05-04 13:21:23 -05:00
pios_board_posix.c Disable auto registration of all objects. Later the uavobj_init linker scripts 2011-07-30 10:24:46 +09:00
pios_board.c console: add debug console via USB CDC/VCP interface 2012-10-11 00:51:09 -04:00
pios_usb_board_data.c usb serial: refactor serial number construction 2012-05-19 16:15:47 -04:00