Browse Source

Plane: move automatic declination setting into AP_Compass itself

master
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
20626a1fe1
  1. 5
      ArduPlane/ArduPlane.cpp

5
ArduPlane/ArduPlane.cpp

@ -379,11 +379,6 @@ void Plane::update_GPS_10Hz(void) @@ -379,11 +379,6 @@ void Plane::update_GPS_10Hz(void)
next_WP_loc = prev_WP_loc = home;
if (AP::compass().enabled()) {
// Set compass declination automatically
const Location &loc = gps.location();
compass.set_initial_location(loc.lat, loc.lng);
}
ground_start_count = 0;
}
}

Loading…
Cancel
Save