AP_Declination: Added new config value to allow the user to have the declination overwritten on every 3D fix.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
Adam M Rivera 2012-03-10 17:20:09 -06:00 committed by Andrew Tridgell
parent c390db5d92
commit 566bbed7ad
4 changed files with 12 additions and 0 deletions

View File

@ -90,3 +90,5 @@
// #define MOT_7 CH_7 // #define MOT_7 CH_7
// #define MOT_8 CH_8 // #define MOT_8 CH_8
// Enabling this will use the GPS lat/long coordinate to get the compass declination
//#define AUTOMATIC_DECLINATION ENABLED

View File

@ -425,6 +425,10 @@
# define GROUND_START_DELAY 3 # define GROUND_START_DELAY 3
#endif #endif
#ifndef AUTOMATIC_DECLINATION
#define AUTOMATIC_DECLINATION DISABLED
#endif
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

View File

@ -39,3 +39,6 @@
#define AIRSPEED_CRUISE 25 #define AIRSPEED_CRUISE 25
#define THROTTLE_FAILSAFE ENABLED #define THROTTLE_FAILSAFE ENABLED
*/ */
// Enabling this will use the GPS lat/long coordinate to get the compass declination
//#define AUTOMATIC_DECLINATION ENABLED

View File

@ -418,6 +418,9 @@
# define GROUND_START_DELAY 0 # define GROUND_START_DELAY 0
#endif #endif
#ifndef AUTOMATIC_DECLINATION
#define AUTOMATIC_DECLINATION DISABLED
#endif
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// ENABLE_AIR_START // ENABLE_AIR_START