From d32a7b3a29e306857ca987807c6f4ca62e551bc5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 10 Sep 2019 09:47:55 +1000 Subject: [PATCH] Sub: wrap_180_cd no longer returns floats for integer arguments --- ArduSub/commands_logic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/commands_logic.cpp b/ArduSub/commands_logic.cpp index 69c2df6762..97c5529f6a 100644 --- a/ArduSub/commands_logic.cpp +++ b/ArduSub/commands_logic.cpp @@ -720,7 +720,7 @@ bool Sub::verify_yaw() } // check if we are within 2 degrees of the target heading - return (fabsf(wrap_180_cd(ahrs.yaw_sensor-yaw_look_at_heading)) <= 200); + return (abs(wrap_180_cd(ahrs.yaw_sensor-yaw_look_at_heading)) <= 200); } /********************************************************************************/