Browse Source

examples: fixed build of some examples with new AP_Declination code

master
Andrew Tridgell 13 years ago
parent
commit
22ff8cb197
  1. 3
      Tools/VARTest/VARTest.pde
  2. 3
      libraries/AP_Math/examples/eulers/eulers.pde
  3. 3
      libraries/AP_Math/examples/rotations/rotations.pde

3
Tools/VARTest/VARTest.pde

@ -28,10 +28,7 @@ @@ -28,10 +28,7 @@
#include <GCS_MAVLink.h>
#include <config.h>
#include <Parameters.h>
#if 0
#include <AP_Declination.h>
#endif
static Parameters g;

3
libraries/AP_Math/examples/eulers/eulers.pde

@ -28,9 +28,8 @@ AP_Baro_BMP085_HIL barometer; @@ -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)
{

3
libraries/AP_Math/examples/rotations/rotations.pde

@ -25,10 +25,7 @@ AP_Baro_BMP085_HIL barometer; @@ -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)

Loading…
Cancel
Save