AP_GPS: added explicit cast to omit [-Wconversion] warning

This commit is contained in:
Tobias 2013-05-17 17:17:20 +02:00 committed by Andrew Tridgell
parent ed3bf2c1e7
commit c95072ea25

View File

@ -139,7 +139,7 @@ public:
// last ground speed in m/s. This can be used when we have no GPS
// lock to return the last ground speed we had with lock
float last_ground_speed(void) {
return _last_ground_speed_cm * 0.01;
return static_cast<float>(_last_ground_speed_cm) * 0.01;
}
// the expected lag (in seconds) in the position and velocity readings from the gps