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

ATTITUDE_QUATERNION: fill repr_offset_q for tailsitters #13249

Merged
merged 5 commits into from Oct 28, 2019

Conversation

jlecoeur
Copy link
Contributor

@jlecoeur jlecoeur commented Oct 23, 2019

This is a follow up for the MAVLink update mavlink/mavlink#1247.

A new field repr_offset_q was added to the message ATTITUDE_QUATERNION to indicate that the attitude have to be rotated before it is displayed to the user.

This is useful for example for tailsitters, which rotate their reference frame by 90 between hover mode and fixed wing mode. This leads to discontinuities in the euler representation (see screenshots in the MAVLink PR).
With this new field, a correct attitude can be displayed in QGC in both modes.

fixes #10405
partially fixes #9179

@jlecoeur jlecoeur force-pushed the pr-mavlink_tailsitter_attitude branch from b9442f1 to 68db506 Compare October 25, 2019 09:16
@jlecoeur
Copy link
Contributor Author

I rebased to master (mavlink has been updated elsewhere)

Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

That was quick, nice!

@julianoes julianoes merged commit 8f910f8 into PX4:master Oct 28, 2019
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.

Tailsitter VTOL orientation in FW mode Quad Tailsitter: Bugfixes
2 participants