Browse Source

Plane: reset baro drift when setting home while disarmed

master
Tom Pittenger 9 years ago
parent
commit
4a6dd5a781
  1. 3
      ArduPlane/ArduPlane.cpp

3
ArduPlane/ArduPlane.cpp

@ -472,6 +472,9 @@ void Plane::update_GPS_10Hz(void) @@ -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

Loading…
Cancel
Save