Plane: move automatic declination setting into AP_Compass itself

This commit is contained in:
Peter Barker 2019-03-27 18:02:12 +11:00 committed by Andrew Tridgell
parent 4fa83ed40d
commit 20626a1fe1

View File

@ -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;
}
}