-
-
Notifications
You must be signed in to change notification settings - Fork 599
Add MAVLink pure mode and config/component cleanup #2746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bb23478 to
855e4cc
Compare
The value is set by the configuration of the component, so that should be the same. That being said, we have to rethink configuration and components of Mavsdk instances at some point.
Add CompatibilityMode enum (Auto, Pure, Px4, ArduPilot) to allow overriding detected autopilot behavior per MAVSDK instance. Add Configuration methods: - get/set_autopilot(): Configure MAV_AUTOPILOT value sent in heartbeats - get/set_compatibility_mode(): Override detected autopilot behavior Changes: - New CompatibilityMode enum for behavior override - Configurable server autopilot identification in heartbeats - Sender interface changed from autopilot() to compatibility_mode() - Added effective_autopilot() to SystemImpl for plugin behavior decisions
This can be overridden if we have compatibility mode set.
This commit adds a few checks and notes around a MAVLink pure mode that can be used to test autopilots whether they support the MAVLink standard as it is specced (or not). The changes are by no means complete or necessarily correct, just an attempt in that direction.
5269e5f to
c1dce63
Compare
|
JonasVautherin
approved these changes
Jan 25, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This revives my pull request from 2022 (#1815) and adds a pure compatibility mode which can be used to test autopilots against what is specced (or not) by the MAVLink standard.
Along with this come a few config and component cleanup commits.