From c2ff66c9cdf3ca1e6d7002334c54c46683c9f802 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <tridge@samba.org> Date: Fri, 30 Mar 2012 14:19:26 +1100 Subject: [PATCH] examples: fixed build of some examples with new AP_Declination code --- Tools/VARTest/VARTest.pde | 3 --- libraries/AP_Math/examples/eulers/eulers.pde | 3 +-- libraries/AP_Math/examples/rotations/rotations.pde | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Tools/VARTest/VARTest.pde b/Tools/VARTest/VARTest.pde index e8b07b862..dac394a01 100644 --- a/Tools/VARTest/VARTest.pde +++ b/Tools/VARTest/VARTest.pde @@ -28,10 +28,7 @@ #include <GCS_MAVLink.h> #include <config.h> #include <Parameters.h> - -#if 0 #include <AP_Declination.h> -#endif static Parameters g; diff --git a/libraries/AP_Math/examples/eulers/eulers.pde b/libraries/AP_Math/examples/eulers/eulers.pde index 1c7cb4825..2bbf2369f 100644 --- a/libraries/AP_Math/examples/eulers/eulers.pde +++ b/libraries/AP_Math/examples/eulers/eulers.pde @@ -28,9 +28,8 @@ AP_Baro_BMP085_HIL barometer; AP_Compass_HIL compass; #endif -#if 0 #include <AP_Declination.h> -#endif + static float rad_diff(float rad1, float rad2) { diff --git a/libraries/AP_Math/examples/rotations/rotations.pde b/libraries/AP_Math/examples/rotations/rotations.pde index 2d27a1f8a..23dc35f86 100644 --- a/libraries/AP_Math/examples/rotations/rotations.pde +++ b/libraries/AP_Math/examples/rotations/rotations.pde @@ -25,10 +25,7 @@ AP_Baro_BMP085_HIL barometer; AP_Compass_HIL compass; #endif -#if AUTOMATIC_DECLINATION == ENABLED -// this is in an #if to avoid the static data #include <AP_Declination.h> // ArduPilot Mega Declination Helper Library -#endif // standard rotation matrices (these are the originals from the old code) -- GitLab