1
0
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:
Laurent Lalanne 2017-04-07 20:02:18 +02:00
parent 524cba9279
commit 37d1a84945

View File

@ -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));