Skip to content

Reference and use new mavlink enumeration values#32504

Merged
peterbarker merged 2 commits intoArduPilot:masterfrom
peterbarker:pr/PREFLIGHT_CALIBRATION_MAGNETOMETER
Mar 25, 2026
Merged

Reference and use new mavlink enumeration values#32504
peterbarker merged 2 commits intoArduPilot:masterfrom
peterbarker:pr/PREFLIGHT_CALIBRATION_MAGNETOMETER

Conversation

@peterbarker
Copy link
Copy Markdown
Contributor

Summary

Use new enumeration values to remove some random constants from the code when handling MAV_CMD_PREFLIGHT stuff

Testing (more checks increases chance of being merged)

  • Checked by a human programmer
  • Tested in SITL
  • Tested on hardware
  • Logs attached
  • Logs available on request
  • Autotest included

This is a no-compiler-output change:

CubeOrange,*

Description

The mavlink changes are cherry-picked from mavlink/mavlink/master

This PR deliberately shaped to be no-compiler-output change.

We don't actually use many of the magnetometer values - we have a separate message for starting cal on specific compasses etc etc.

@peterbarker
Copy link
Copy Markdown
Contributor Author

MAVLink PR is here: ArduPilot/mavlink#492

@peterbarker peterbarker force-pushed the pr/PREFLIGHT_CALIBRATION_MAGNETOMETER branch from eefe4bf to fdaa722 Compare March 23, 2026 21:39
@peterbarker peterbarker force-pushed the pr/PREFLIGHT_CALIBRATION_MAGNETOMETER branch from fdaa722 to 7296dfd Compare March 24, 2026 03:36
@peterbarker peterbarker merged commit d515a03 into ArduPilot:master Mar 25, 2026
107 checks passed
@peterbarker peterbarker deleted the pr/PREFLIGHT_CALIBRATION_MAGNETOMETER branch March 25, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants