From eb2bfcd2d362814e2781a168e802f04eaf88c3d5 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Fri, 8 May 2015 11:40:55 -0700 Subject: [PATCH] Plane: replace fabs() with labs(), unnecessary int to float conversion --- ArduPlane/commands_logic.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/commands_logic.pde b/ArduPlane/commands_logic.pde index aa22f762ee..398b599a00 100644 --- a/ArduPlane/commands_logic.pde +++ b/ArduPlane/commands_logic.pde @@ -565,7 +565,7 @@ static bool verify_loiter_to_alt() //has target altitude been reached? if (condition_value != 0) { - if (fabs(condition_value - current_loc.alt) < 500) { + if (labs(condition_value - current_loc.alt) < 500) { //Only have to reach the altitude once -- that's why I need //this global condition variable. //