Skip to content

Commit

Permalink
fix: MSP_RAW_GPS cog should be decidegrees not centidegrees
Browse files Browse the repository at this point in the history
  • Loading branch information
catkira committed Sep 12, 2024
1 parent f3b4f8f commit dc8f395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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_cd = gps.ground_course_cd() * 10;
}
}
#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;
int16_t ground_course_dd;
} gps_state_t;

typedef struct airspeed_state_s {
Expand Down

0 comments on commit dc8f395

Please sign in to comment.