Servers by jDrones

Getting started with debugging via console output

Hey there,

I’m working on developing support for a new barometer, and I’ve run into an issue while trying to debug Ardupilot code running on a Pixhawk. Namely, what should I be doing to print messages for debugging? The documentation suggests that printf statements will be directed to the first serial port connection, but opening the USB connection in Putty is just giving me junk data (which I assume are MavLink messages). Is there a setup step I am missing to see the printf statements, or is that depreciated in favor of a different debugging system?

Sorry if this is a basic question, but I couldn’t find the answer in the documentation.


You should see them if you connect MAVProxy. Alternatively you can switch to gcs():send_text()

Ok, I will give that a shot. Thanks for the quick reply.

printf-style debugging stuff is here:

Servers by jDrones