From a165f0d1386b587039f3d546fdfc708746672739 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 29 Mar 2013 13:13:50 +1100 Subject: [PATCH] Plane: removed old angle wrap code --- ArduPlane/navigation.pde | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ArduPlane/navigation.pde b/ArduPlane/navigation.pde index 96e8705cb8..7754b41b60 100644 --- a/ArduPlane/navigation.pde +++ b/ArduPlane/navigation.pde @@ -130,20 +130,6 @@ static void calc_altitude_error() altitude_error_cm = target_altitude_cm - adjusted_altitude_cm(); } -static int32_t wrap_360_cd(int32_t error) -{ - if (error > 36000) error -= 36000; - if (error < 0) error += 36000; - return error; -} - -static int32_t wrap_180_cd(int32_t error) -{ - if (error > 18000) error -= 36000; - if (error < -18000) error += 36000; - return error; -} - static void update_loiter() { float power;