examples: fixed build of some examples with new AP_Declination code

This commit is contained in:
Andrew Tridgell 2012-03-30 14:19:26 +11:00
parent 86cc7a5e1d
commit 22ff8cb197
3 changed files with 1 additions and 8 deletions

View File

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

View File

@ -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)
{

View File

@ -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)