...
The debug console can write to:
- a virtual COM port (VCP) via USB
- a serial (UART) interface (Main Port/Flexi Port)
- a radio auxiliary stream while using a Revolution or Sparky2 board:. Aux. stream need to be redirected to VCP on ground OPLink.
Enabling an Interface
Before writing to the virtual COM port or a UART interface using the debug console, the port has to be assigned to that function in GCS:
- Go to the "Configuration" tab
- Select "Hardware" from the menu on the left
- Choose "DebugConsole" for the port you would like to use (USB is the easiest so set up, Main - or Flexi Port need a USB to serial converter)
...
- Save settings and reboot board.
USB | Main/Flexi | Radio Aux Stream |
---|---|---|
Tip | ||
---|---|---|
| ||
On Windows 8.1 and lower, a driver is needed in order to use the USB virtual COM port. If you have installed GCS using a setup file and checked the option "Install CDC Driver", the driver was installed already. Otherwise, the driver can be found inside the LibrePilot repository ( |
...
To see the output of DEBUG_PRINTF
, you'll need a serial terminal program. Find out what COM serial port the flight controller is on and connect to it.
On Windows, the OpenPilot Revolution shows up as "Revolution Virtual COM Port" under "Ports (COM & LPT)" in the device manager.
On Linux, the board or OPLink VCP (with Radio Aux Stream) will be something like /dev/ttyACM0.