ACM: removed FORCE_AUTOMATIC_DECLINATION_UPDATE

we now have the EEPROM option COMPASS_AUTODEC instead
This commit is contained in:
Andrew Tridgell 2012-03-30 14:18:43 +11:00
parent 504c53f746
commit 0bc604f030
2 changed files with 2 additions and 7 deletions

View File

@ -1378,9 +1378,9 @@ static void update_GPS(void)
ground_start_count = 5; ground_start_count = 5;
}else{ }else{
if(g.compass_enabled) { if (g.compass_enabled) {
// Set compass declination automatically // Set compass declination automatically
compass.set_initial_location(g_gps->latitude, g_gps->longitude, (FORCE_AUTOMATIC_DECLINATION_UPDATE == ENABLED)); compass.set_initial_location(g_gps->latitude, g_gps->longitude);
} }
// save home to eeprom (we must have a good fix to have reached this point) // save home to eeprom (we must have a good fix to have reached this point)
init_home(); init_home();

View File

@ -425,11 +425,6 @@
# define GROUND_START_DELAY 3 # define GROUND_START_DELAY 3
#endif #endif
#ifndef FORCE_AUTOMATIC_DECLINATION_UPDATE
#define FORCE_AUTOMATIC_DECLINATION_UPDATE DISABLED
#endif
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// FLIGHT AND NAVIGATION CONTROL // FLIGHT AND NAVIGATION CONTROL