Not receiving MAVlink message id Mag Cal Progress

Hello everyone,

I am currently in the process of integrating Mission Planner’s Compass Calibration feature into my custom Qt / C++ application. I have successfully initiated the compass calibration procedure by sending the MAV_CMD_DO_START_MAG_CAL command. However, despite the calibration process executing without any apparent issues, I am encountering a lack of feedback or progress reports pertaining to the compass calibration status (Not able to receive MAVLINK_MSG_ID_MAG_CAL_PROGRESS or MAVLINK_MSG_ID_MAG_CAL_REPORT.)

My objective is to dynamically visualize the progress of the compass calibration process within the user interface using a progress bar. Could you kindly advise on potential reasons for the absence of feedback or progress updates?

You could try to do it with MAVSDK but it might not be compatible with ArduPilot but only PX4.

https://mavsdk.mavlink.io/v2.0/en/cpp/api_reference/classmavsdk_1_1_calibration.html

Are you sure these are actually being emitted? I.e. can you see them in mission planner/QGC when you use them to do the calibration?

The command you are sending is in ArduPilot - ardupilotmega.xml · MAVLink Developer Guide

This is a PX4 forum, and personally I only have expertise in the mavlink messages in common.xml, so probably best you ask in ArduPilot or mission planner.

Note, the method for this in common.xml is to call Messages (common) · MAVLink Developer Guide

1 Like