examples: fixed build of some examples with new AP_Declination code
This commit is contained in:
parent
5dbd2a2b60
commit
c2ff66c9cd
@ -28,10 +28,7 @@
|
|||||||
#include <GCS_MAVLink.h>
|
#include <GCS_MAVLink.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <Parameters.h>
|
#include <Parameters.h>
|
||||||
|
|
||||||
#if 0
|
|
||||||
#include <AP_Declination.h>
|
#include <AP_Declination.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
static Parameters g;
|
static Parameters g;
|
||||||
|
|
||||||
|
@ -28,9 +28,8 @@ AP_Baro_BMP085_HIL barometer;
|
|||||||
AP_Compass_HIL compass;
|
AP_Compass_HIL compass;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
|
||||||
#include <AP_Declination.h>
|
#include <AP_Declination.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
static float rad_diff(float rad1, float rad2)
|
static float rad_diff(float rad1, float rad2)
|
||||||
{
|
{
|
||||||
|
@ -25,10 +25,7 @@ AP_Baro_BMP085_HIL barometer;
|
|||||||
AP_Compass_HIL compass;
|
AP_Compass_HIL compass;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AUTOMATIC_DECLINATION == ENABLED
|
|
||||||
// this is in an #if to avoid the static data
|
|
||||||
#include <AP_Declination.h> // ArduPilot Mega Declination Helper Library
|
#include <AP_Declination.h> // ArduPilot Mega Declination Helper Library
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// standard rotation matrices (these are the originals from the old code)
|
// standard rotation matrices (these are the originals from the old code)
|
||||||
|
Loading…
Reference in New Issue
Block a user