-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
AP_MSP: MSP_RAW_GPS cog should be decidegrees not centidegrees #28090
Conversation
dc8f395
to
d76b94f
Compare
I think we should also make ground_course_dd uint16_t, because the range is 0 - 3600 deci-degrees. |
Looks likely. Commit message should be |
I can fix. Should I also change it to uint16_t? (-> see my last force push) |
d76b94f
to
d5a7551
Compare
@@ -217,7 +217,7 @@ void AP_MSP_Telem_Backend::update_gps_state(gps_state_t &gps_state) | |||
gps_state.lon = loc.lng; | |||
gps_state.alt_m = loc.alt/100; // 1m resolution | |||
gps_state.speed_cms = gps.ground_speed() * 100; | |||
gps_state.ground_course_cd = gps.ground_course_cd(); | |||
gps_state.ground_course_dd = gps.ground_course_cd() * 10; |
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.
To convert from centi-degrees to deci-degrees you need to divide by 10
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.
yes, good catch :)
94f25fc
to
90e5e1a
Compare
90e5e1a
to
4dca1b1
Compare
@rmackay9 can you backport this to plane 4.5.6 ? |
source: http://www.multiwii.com/wiki/index.php?title=Multiwii_Serial_Protocol