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

Expect radians for DO_GIMBAL_MANAGER_PITCHYAW msg #24122

Closed

Conversation

gillamkid
Copy link

Expect values to be in radians for the DO_GIMBAL_MANAGER_PITCHYAW msg (units are specified as radians in the MAVLINK message definition)

note: QGC is also setting the message fields using degrees when it should be using radians. The PR for that fix can be seen here: mavlink/qgroundcontrol#12232

Sponsor

This contribution was sponsored by Firestorm
654d4f9476ff2a38f37e9ab9_firestorm-homepage-share-img-2

… (units are specified as radians in the MAVLINK message definition)
@TSC21
Copy link
Member

TSC21 commented Dec 17, 2024

The command is actually correct: MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW. What is confisuing is why GIMBAL_MANAGER_SET_PITCHYAW uses the angles in rads and the command is using the angles in degrees, This is clearly a protocol mistake that lead to a misunderstanding. @hamishwillee FYI we probably should update this at the MAVLink level. Closing this for now

@TSC21 TSC21 closed this Dec 17, 2024
@hamishwillee
Copy link
Contributor

Thanks @TSC21 - questions about gimbal message design should first be addressed to @julianoes - but this stuff is all implemented everywhere, so unlikely can be changed now.

@julianoes
Copy link
Contributor

My thinking was that a command might be hand-crafted as part of a mission, and therefore I made it more intuitive. The rest is more of a programmatic API where we usually use radians. So while I had my reasons, I agree that it isn't necessarily intuitive and can catch you off guard. I believe it is documented correctly though, and it's implemented in various places this way, so unlikely to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants