examples: fixed build of some examples with new AP_Declination code
This commit is contained in:
parent
86cc7a5e1d
commit
22ff8cb197
@ -28,10 +28,7 @@
|
||||
#include <GCS_MAVLink.h>
|
||||
#include <config.h>
|
||||
#include <Parameters.h>
|
||||
|
||||
#if 0
|
||||
#include <AP_Declination.h>
|
||||
#endif
|
||||
|
||||
static Parameters g;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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…
Reference in New Issue
Block a user