Skip to content

Mavlink: update MAG_CAL_STATUS failure enums#3750

Open
christianpetri wants to merge 1 commit into
ArduPilot:masterfrom
christianpetri:mavlink-bump-jul2026
Open

Mavlink: update MAG_CAL_STATUS failure enums#3750
christianpetri wants to merge 1 commit into
ArduPilot:masterfrom
christianpetri:mavlink-bump-jul2026

Conversation

@christianpetri

@christianpetri christianpetri commented Jul 14, 2026

Copy link
Copy Markdown

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:

  1. mavlink/mavlink#2478 — common.xml: rename MAG_CAL_BAD_ORIENTATION → MAG_CAL_FAILED_ORIENTATION, MAG_CAL_BAD_RADIUS → MAG_CAL_FAILED_RADIUS, add FAILED_OFFSETS / FAILED_DIAG_SCALING / FAILED_RESIDUALS_HIGH. Merged Jun 2.
  2. ArduPilot/mavlink#506 — Sync the same change into the ArduPilot MAVLink fork. Merged 2 weeks ago.
  3. ardupilot#33642 — Bump the ArduPilot mavlink submodule pointer to pick up the new enums. Merged 2 weeks ago.
  4. This PR — Apply the same common.xml change to Mission Planner's vendored copy and update the generated Mavlink.cs enum block, so the GCS shows descriptive names instead of raw integers.

Changes

No other files are touched.

Verification

dotnet build MissionPlanner.csproj -c Debug succeeds with 0 errors.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant