mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
Constants changed to float for better portability.
This commit is contained in:
parent
4ede7a8af6
commit
0b7538c3fe
@ -73,9 +73,9 @@ void parse_ubx_nav_velned (UBXPayload payload)
|
||||
GPSVelocityData GpsVelocity;
|
||||
GPSVelocityGet(&GpsVelocity);
|
||||
|
||||
GpsVelocity.North = (float)payload.nav_velned.velN/100.0;
|
||||
GpsVelocity.East = (float)payload.nav_velned.velE/100.0;
|
||||
GpsVelocity.Down = (float)payload.nav_velned.velD/100.0;
|
||||
GpsVelocity.North = (float)payload.nav_velned.velN/100.0f;
|
||||
GpsVelocity.East = (float)payload.nav_velned.velE/100.0f;
|
||||
GpsVelocity.Down = (float)payload.nav_velned.velD/100.0f;
|
||||
|
||||
GPSVelocitySet(&GpsVelocity);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user