Plane: reset baro drift when setting home while disarmed

This commit is contained in:
Tom Pittenger 2016-05-13 13:28:54 -07:00
parent 472dae3ed9
commit 4a6dd5a781

View File

@ -472,6 +472,9 @@ void Plane::update_GPS_10Hz(void)
if (!hal.util->get_soft_armed()) {
update_home();
// zero out any baro drift
barometer.set_baro_drift_altitude(0);
}
// update wind estimate