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

AP_MSP: MSP_RAW_GPS cog should be decidegrees not centidegrees #28090

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/AP_MSP/AP_MSP_Telem_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
peterbarker marked this conversation as resolved.
Show resolved Hide resolved
}
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_MSP/AP_MSP_Telem_Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ friend AP_MSP;
int32_t lon;
uint16_t alt_m;
uint16_t speed_cms;
int16_t ground_course_cd;
uint16_t ground_course_dd;
} gps_state_t;

typedef struct airspeed_state_s {
Expand Down
Loading