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
This commit is contained in:
Andrew Tridgell 2019-02-08 10:15:47 +11:00
parent 542aa4c9e0
commit 0089e98bb6
1 changed files with 1 additions and 0 deletions

View File

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