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

AP_Mount: all backends send gimbal-device-attitude-status #21243

Merged
merged 11 commits into from
Aug 16, 2022

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Jul 21, 2022

This updates all backends to send the GIMBAL_DEVICE_ATTITUDE_STATUS message instead of the older ardupilot specific MOUNT_STATUS message.

Some other changes are also included:

  • autotests adjusted to consume the GIMBAL_DEVICE_ATTITUDE_STATUS message (instead of MOUNT_STATUS)
  • GCS_MAVLink bug fix to forward MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW to the AP_Mount library. Without this the gimbal responded to mission commands correctly but not to the equivalent immediate commands sent from a GCS in real-time.
  • autotest updated to test the above command. Note this required slightly relaxing one tests acceptance threshold probably because of the use of Quaternions instead of Eulers
  • autotest gets a new set-mount-mode method to reduce duplicate code
  • copter-gimbal.parm parameter file added to ease setting up a gimbal in SITL

This has been tested in SITL for servo and Gremsy backends to ensure they send the correct messages. We currently have no way to test the other gimbal drivers (Solo, SToRM32 serial and mavlink, AlexMos serial) but they should be fine.
image

@rmackay9 rmackay9 force-pushed the mount-fix-msgs branch 4 times, most recently from 1507d92 to c7ae769 Compare July 23, 2022 01:13
tridge
tridge previously requested changes Aug 8, 2022
libraries/AP_Mount/AP_Mount_SoloGimbal.cpp Outdated Show resolved Hide resolved
libraries/AP_Mount/AP_Mount_SoloGimbal.cpp Outdated Show resolved Hide resolved
libraries/GCS_MAVLink/GCS_Common.cpp Show resolved Hide resolved
@rmackay9 rmackay9 force-pushed the mount-fix-msgs branch 2 times, most recently from ec4f837 to ecdd80c Compare August 10, 2022 11:06
@rmackay9 rmackay9 dismissed stale reviews from peterbarker and tridge August 12, 2022 00:33

I've resolved issues raised by PeterB

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.

4 participants