mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Plane: move automatic declination setting into AP_Compass itself
This commit is contained in:
parent
4fa83ed40d
commit
20626a1fe1
@ -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…
Reference in New Issue
Block a user