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

ExtLibs: setMountConfigure uses mav-cmd-do-mount-configure #3159

Merged

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Aug 11, 2023

This changes the SetMountConfigure method so that it uses the MAV_CMD_DO_MOUNT_CONFIGURE mavlink command instead of the deprecated ardupilot specific MOUNT_CONFIGURE message.

This method is only used by the Payload Control tab's "Reset Position" button.
image

By the way, ArduPilot has consumed the do-mount-configure command since before ver 4.0 (I didn't look back any further than this). Ardupilot stopped consuming the roll_stab, pitch_stab and yaw_stab values in version 4.3 but this PR doesn't change how these fields are set anyway.

This has been lightly tested on a real autopilot using a Xacti gimbal. The only difference in behaviour noted was that the flight code no longer displays the deprecated message. Below are before and after screen shots taken during testing.
mp-do-mount-configure-cmd-before-vs-after

@meee1 meee1 merged commit 4f13e5a into ArduPilot:master Aug 13, 2023
7 checks passed
@rmackay9
Copy link
Contributor Author

Thanks!

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

2 participants