Thanks for the instructions, but I still can't get it to transmit any debug data over serial port. Here is exactly what I did:
- in file ibrepilot/flight/targets/boards/gpsplatinum/pios_board.h I uncommented the following lines like this
#define PIOS_INCLUDE_DEBUG_CONSOLE
#define DEBUG_LEVEL 2
// #define PIOS_ENABLE_DEBUG_PINS
- I added the following code to the flight/modules/Stabilization/innerloop.c in the GyroStateUpdatedCb() function:
static void GyroStateUpdatedCb(__attribute__((unused)) UAVObjEvent *ev)
{
GyroStateData gyroState;
GyroStateGet(&gyroState);
printf("TEST printf");
DEBUG_PRINTF(2, "Testing!!!\n");
- Deleted the whole build folder (just in case)
- Compiled using
make fw_coptercontrol
- Uploaded with your fancy GUI
- Tried to set 'DebugConsole' on all ports, disabling everything else except 'USBTelemetry' on USB HID port'
- Tested the serial by setting the telemetry on the flexi/main port and I had data flying around like crazy, matrix style
- Tried every combination I could think of, just like installing a printer on Windows 95
Can someone please confirm the following steps on the CC3D are correct or not, please? I am runnign out of ideas here..