AP_GPS: added explicit cast to omit [-Wconversion] warning
This commit is contained in:
parent
ed3bf2c1e7
commit
c95072ea25
@ -139,7 +139,7 @@ public:
|
|||||||
// last ground speed in m/s. This can be used when we have no GPS
|
// 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
|
// lock to return the last ground speed we had with lock
|
||||||
float last_ground_speed(void) {
|
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
|
// the expected lag (in seconds) in the position and velocity readings from the gps
|
||||||
|
Loading…
Reference in New Issue
Block a user