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

VFR_HUD: add attitude for user display #13114

Closed
wants to merge 4 commits into from

Conversation

jlecoeur
Copy link
Contributor

@jlecoeur jlecoeur commented Oct 7, 2019

( Requires MAVLink PR mavlink/mavlink#1247 )

This PR handles the extension of VFR_HUD with attitude fields meant for user display.

See MAVLink PR for details.

fixes #5291 #10405

@dagar
Copy link
Member

dagar commented Oct 7, 2019

Seems fine to me as long as no one is opposed to the mavlink change.


// Attitude
const matrix::Quatf att = matrix::Quatf(attitude.q) * _rotation;
msg.q1 = att(0);
Copy link
Member

Choose a reason for hiding this comment

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

I suppose this is a question for mavlink/mavlink#1247, but why isn't the quaternion an array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used the same format as in ATTITUDE_QUATERNION.
Both should be array in my opinion, or at least 0 indexed...

@@ -1635,7 +1635,7 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream)
configure_stream_local("SERVO_OUTPUT_RAW_0", 1.0f);
configure_stream_local("SYS_STATUS", 1.0f);
configure_stream_local("UTM_GLOBAL_POSITION", 0.5f);
configure_stream_local("VFR_HUD", 4.0f);
configure_stream_local("VFR_HUD", 15.0f);
Copy link
Contributor

Choose a reason for hiding this comment

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

@dagar remember our conversation? So which one is really used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In QGC, once ATTITUDE_QUATERNION is received, ATTITUDE is ignored.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same in MAVSDK.

@jlecoeur
Copy link
Contributor Author

replaced by #13249

@jlecoeur jlecoeur closed this Oct 23, 2019
@jlecoeur jlecoeur deleted the pr-hud_attitude branch October 23, 2019 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attitude rotation for tailsitter.
3 participants