AP_MSP: MSP_RAW_GPS cog should be decidegrees not centidegrees

This commit is contained in:
Benjamin Menkuec 2024-09-12 13:40:41 +02:00 committed by Peter Barker
parent 9e28bec87a
commit 09286e6f53
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
#endif

View File

@ -57,7 +57,7 @@ public:
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 {