Tools: Replay: move automatic declination setting into AP_Compass itself

This commit is contained in:
Peter Barker 2019-03-27 18:02:33 +11:00 committed by Andrew Tridgell
parent 03e6065380
commit 92dde5b111

View File

@ -644,7 +644,6 @@ void Replay::read_sensors(const char *type)
if (!_vehicle.ahrs.set_home(loc)) {
::printf("Failed to set home to that location!");
}
_vehicle.compass.set_initial_location(loc.lat, loc.lng);
done_home_init = true;
}
}