mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_Frsky_Telem: remove unnecessary abs
resolves a compiler warning
This commit is contained in:
parent
4aba25d2ef
commit
ea3c44f9fa
@ -506,7 +506,7 @@ void AP_Frsky_Telem::calc_gps_position()
|
||||
|
||||
alt = loc.alt * 0.01f;
|
||||
_alt_gps_meters = (int16_t)alt;
|
||||
_alt_gps_cm = (alt - abs(_alt_gps_meters)) * 100;
|
||||
_alt_gps_cm = (alt - _alt_gps_meters) * 100;
|
||||
|
||||
speed = gps.ground_speed();
|
||||
_speed_in_meter = speed;
|
||||
|
Loading…
Reference in New Issue
Block a user