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

Update gimbal manager v2 messages: #323

Conversation

Davidsastresas
Copy link

@Davidsastresas Davidsastresas commented Jul 19, 2023

Lots of them are not WIP anymore, and some important fields were added to some messages, like gimbal_device_id. I am preparing the matching PR for Ardupilot.

@rmackay9 could be interested on this one.

I am marking it as draft until the matching PR is ready for AP as well.

<description>Lock yaw angle to absolute angle relative to North (not relative to drone). If this flag is set, the quaternion is in the Earth frame with the x-axis pointing North (yaw absolute). If this flag is not set, the quaternion frame is in the Earth frame rotated so that the x-axis is pointing forward (yaw relative to vehicle).</description>
<description>Lock yaw angle to absolute angle relative to North (not relative to vehicle). If this flag is set, the yaw angle and z component of angular velocity are relative to North (earth frame, x-axis pointing North), else they are relative to the vehicle heading (vehicle frame, earth frame rotated so that the x-axis is pointing forward).</description>
</entry>
<entry value="32" name="GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These all seem redundant to me. four different ways to specify whether the yaw works in earth frame?!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the previous comment refers to gimbal device capabilities, and as per my previous comment it could "make sense". My understanding is that the ones here refers to flags, to actual state of the gimbal, not the capabilities of the gimbal. But again that is my understanding of it, I could be wrong, this is just how mavlink/mavlink is.

@Davidsastresas Davidsastresas marked this pull request as ready for review July 19, 2023 23:22
@Davidsastresas Davidsastresas force-pushed the master-PR/Update-latest-gimbal-manager-v2 branch 2 times, most recently from d9eca42 to 727ff85 Compare July 19, 2023 23:41
Lots of them are not WIP anymore, and some important fields
were added to some messages, like gimbal_device_id
@tridge tridge force-pushed the master-PR/Update-latest-gimbal-manager-v2 branch from 727ff85 to 0c7ae7f Compare August 7, 2023 23:14
@rmackay9 rmackay9 merged commit 8ea58b5 into ArduPilot:master Aug 8, 2023
10 checks passed
@rmackay9
Copy link

rmackay9 commented Aug 8, 2023

Merged, 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.

4 participants