Browse Source

Plane: call AHRS resetHeightDatum() on baro reset

this prevents the AMSL estimate from the EKF going off badly if we
disarm at a high altitude
mission-4.1.18
Andrew Tridgell 6 years ago
parent
commit
0089e98bb6
  1. 1
      ArduPlane/commands.cpp

1
ArduPlane/commands.cpp

@ -124,6 +124,7 @@ void Plane::update_home() @@ -124,6 +124,7 @@ void Plane::update_home()
}
}
barometer.update_calibration();
ahrs.resetHeightDatum();
}
void Plane::set_home_persistently(const Location &loc)

Loading…
Cancel
Save