Plane: Don't set takeoff expected until vehicle is armed.

This commit is contained in:
Paul Riseborough 2020-12-13 07:16:12 +11:00 committed by Andrew Tridgell
parent 295c1e1308
commit ad582a90dd

View File

@ -61,7 +61,7 @@ bool Plane::auto_takeoff_check(void)
}
// let EKF know to start GSF yaw estimator before takeoff movement starts so that yaw angle is better estimated
plane.ahrs.setTakeoffExpected(true);
plane.ahrs.setTakeoffExpected(arming.is_armed());
// we've reached the acceleration threshold, so start the timer
if (!takeoff_state.launchTimerStarted) {