mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
LP-504 Set speed unit to cm/s
This commit is contained in:
parent
524cba9279
commit
37d1a84945
@ -531,7 +531,7 @@ static void msp_send_raw_gps(struct msp_bridge *m)
|
||||
data.raw_gps.lat = gps_data.Latitude;
|
||||
data.raw_gps.lon = gps_data.Longitude;
|
||||
data.raw_gps.alt = (uint16_t)gps_data.Altitude;
|
||||
data.raw_gps.speed = (uint16_t)gps_data.Groundspeed;
|
||||
data.raw_gps.speed = (uint16_t)(gps_data.Groundspeed * 100.0f);
|
||||
data.raw_gps.ground_course = (int16_t)(gps_data.Heading * 10.0f);
|
||||
|
||||
msp_send(m, MSP_RAW_GPS, data.buf, sizeof(data));
|
||||
|
Loading…
Reference in New Issue
Block a user