-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Conversation
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same in MAVSDK.
replaced by #13249 |
( 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