mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Merged in f5soh/librepilot/LP-504_MSP_speed_fix (pull request #413)
LP-504 Set speed unit to cm/s Approved-by: Lalanne Laurent <f5soh@free.fr> Approved-by: Philippe Renon <philippe_renon@yahoo.fr> Approved-by: Brian Webb <webbbn@gmail.com> Approved-by: Alessio Morale <alessiomorale@gmail.com>
This commit is contained in:
commit
4d6bcdd117
@ -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