Mavlink: update MAG_CAL_STATUS failure enums - #3750
Conversation
95b2cd2 to
f2a9bcf
Compare
Rename BAD_ORIENTATION/BAD_RADIUS to FAILED_ORIENTATION/FAILED_RADIUS and add three new failure codes introduced by the upstream PR: - MAG_CAL_FAILED_OFFSETS (value 8) - MAG_CAL_FAILED_DIAG_SCALING (value 9) - MAG_CAL_FAILED_RESIDUALS_HIGH (value 10) Changes: common.xml + regenerated Mavlink.cs enum block only.
f2a9bcf to
390efc3
Compare
|
Automated review note — AI-generated (Claude), validated against the live diff. Please sanity-check before acting. Reviewed at head The main risk with a vendored One loose end and two notes:
|
Context
AP_Compass: report specific failure reason when fit rejected (ardupilot#32757) extended ArduPilot's compass calibrator to emit a specific failure code in MAG_CAL_REPORT.cal_status instead of always returning the generic MAG_CAL_FAILED. Three new status values were added (8 = FAILED_OFFSETS, 9 = FAILED_DIAG_SCALING, 10 = FAILED_RESIDUALS_HIGH).
That required the MAVLink spec and every toolchain downstream of it to be updated:
Changes
No other files are touched.
Verification
dotnet build MissionPlanner.csproj -c Debug succeeds with 0 errors.