1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/ground/openpilotgcs
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
..
bin build: Move openpilotgcs into its own subdirectory 2011-01-22 17:40:26 +00:00
share GCS-Try to fix linux file copy without braking Win 2012-10-07 16:50:04 +01:00
src console: add debug console via USB CDC/VCP interface 2012-10-11 00:51:09 -04:00
copydata.pro Windows packaging: fix MinGW DLL locations for Qt 4.8.1+ (4.8.0 compatible) 2012-07-29 23:59:54 +03:00
openpilotgcs.pri OP-520 Change $$qtLibraryTarget to $$qtLibraryName 2011-08-04 15:17:08 +02:00
openpilotgcs.pro OP-483: remove gcs/packaging subdirectory (not required anymore) 2011-05-19 13:08:54 +03:00