AP_MSP: MSP_RAW_GPS cog should be decidegrees not centidegrees
This commit is contained in:
parent
9e28bec87a
commit
09286e6f53
@ -217,7 +217,7 @@ void AP_MSP_Telem_Backend::update_gps_state(gps_state_t &gps_state)
|
|||||||
gps_state.lon = loc.lng;
|
gps_state.lon = loc.lng;
|
||||||
gps_state.alt_m = loc.alt/100; // 1m resolution
|
gps_state.alt_m = loc.alt/100; // 1m resolution
|
||||||
gps_state.speed_cms = gps.ground_speed() * 100;
|
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
|
#endif
|
||||||
|
@ -57,7 +57,7 @@ public:
|
|||||||
int32_t lon;
|
int32_t lon;
|
||||||
uint16_t alt_m;
|
uint16_t alt_m;
|
||||||
uint16_t speed_cms;
|
uint16_t speed_cms;
|
||||||
int16_t ground_course_cd;
|
uint16_t ground_course_dd;
|
||||||
} gps_state_t;
|
} gps_state_t;
|
||||||
|
|
||||||
typedef struct airspeed_state_s {
|
typedef struct airspeed_state_s {
|
||||||
|
Loading…
Reference in New Issue
Block a user