From a50f5bfaf86ebe0eadeff116e1c00b82dd67109e Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 23 Apr 2016 09:33:04 +0900 Subject: [PATCH] AP_L1_Control: replace fabsf with labs resolves a compiler warning --- libraries/AP_L1_Control/AP_L1_Control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_L1_Control/AP_L1_Control.cpp b/libraries/AP_L1_Control/AP_L1_Control.cpp index 01b0cf4855c..54bc43bc58a 100644 --- a/libraries/AP_L1_Control/AP_L1_Control.cpp +++ b/libraries/AP_L1_Control/AP_L1_Control.cpp @@ -119,7 +119,7 @@ void AP_L1_Control::_prevent_indecision(float &Nu) const float Nu_limit = 0.9f*M_PI; if (fabsf(Nu) > Nu_limit && fabsf(_last_Nu) > Nu_limit && - fabsf(wrap_180_cd(_target_bearing_cd - _ahrs.yaw_sensor)) > 12000 && + labs(wrap_180_cd(_target_bearing_cd - _ahrs.yaw_sensor)) > 12000 && Nu * _last_Nu < 0.0f) { // we are moving away from the target waypoint and pointing // away from the waypoint (not flying backwards). The sign