Skip to content
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

GCS_MAVLink: add support for MAV_CMD_EKF_SOURCE_SET #18345

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Aug 16, 2021

This adds support for the new MAV_CMD_EKF_SOURCE_SET command that allows external systems to set the active EKF sensor source set.

This has been tested in SITL and works. I think the only question is whether we want the mavlink command to accept the source set in the range 1 to 3 (to match the parameters) or 0 to 2 (to match the ahrs interface). Currently it is implemented in the 1 to 3 range.

MAVLink PR ArduPilot/mavlink#220 should be merged first.

This resolves the "add support for switching source via MAVLink" item in issue #15859

Below is a screen shot of the SITL test with some extra debug added.
ekf-source-set-sitl-test

@peterbarker
Copy link
Contributor

Note that you could already trigger these using MAV_CMD_DO_AUX_FUNCTION - that's useful as an intermediate thing until more formalised commands like this one get made.

It would be great if we could get a MissionPlanner interface element that allowed triggering axillary functions with MAV_CMD_DO_AUX_FUNCTION, @meee1

@tridge
Copy link
Contributor

tridge commented Aug 18, 2021

just needs the mavlink shuffle for submodule

@rmackay9
Copy link
Contributor Author

rebased on master so we can merge once it has passed CI

@rmackay9
Copy link
Contributor Author

I've rebased this on PR #18317 so that it can pass CI

@rmackay9
Copy link
Contributor Author

Two commits added to pad the battery status and command_ack messages with zeros.

this allows external systems to set the active EKF source set
@tridge tridge merged commit 2fba313 into ArduPilot:master Aug 19, 2021
@rmackay9 rmackay9 deleted the ekf-source-set-mavlink branch August 19, 2021 02:53
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.

None yet

3 participants