1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/flight
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
..
board_hw_defs rcvr: Support PPM and PWM at the same time on CC 2012-09-29 19:11:48 -04:00
Bootloaders Merge branch 'MikeL' into next 2012-06-07 11:31:41 -05:00
CopterControl console: add debug console via USB CDC/VCP interface 2012-10-11 00:51:09 -04:00
Doc Merged latest origin/next. 2012-05-05 09:40:44 -07:00
EntireFlash ef: Add fwinfo to entireflash (EF) images 2012-09-05 21:45:59 -04:00
Libraries PID: Fix small bug in setpoint weighting that had really ugly consequences 2012-09-12 00:07:17 -05:00
Modules console: example usage of the debug console 2012-10-11 00:22:07 -04:00
OpenPilot/System Merged latest origin/next. 2012-05-05 09:40:44 -07:00
PiOS console: add support for serial debug consoles 2012-10-11 00:22:07 -04:00
PiOS.posix actuator: factor out settings updates from main loop 2012-08-11 19:46:00 -04:00
PiOS.win32 actuator: factor out settings updates from main loop 2012-08-11 19:46:00 -04:00
PipXtreme Default DIAG_TASK was on for PipX 2012-10-03 15:11:15 -05:00
Project gdb: add gdb config file for CC BU image 2012-09-16 21:13:42 -04:00
RemoteSystemsTempFiles Merge branch 'next' into MikeL 2012-06-04 16:59:31 -07:00
Revolution Merge branch 'next' into kenz/diag_stack_split 2012-09-27 19:29:23 +02:00
SimPosix Merge branch 'next' into kenz/diag_stack_split 2012-09-27 19:29:23 +02:00
UAVObjects taskinfo: also track Event thread's stack usage and CPU utilization 2012-08-11 18:47:03 -04:00
UAVTalk Exposed the Send ACK/NACK function in UAVTalk. 2012-05-02 20:42:37 -07:00
README.txt Says all it needs to say for now. 2009-12-22 05:07:27 +00:00

Check the wiki