From a0b9cb002ed6c88911eb11b52a692260abee847e Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Mon, 24 Dec 2018 09:30:53 +1100 Subject: [PATCH] EKF: Use consistent method for recording completion of in-flight yaw alignment --- EKF/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EKF/control.cpp b/EKF/control.cpp index e790dc4d37..849e12e645 100644 --- a/EKF/control.cpp +++ b/EKF/control.cpp @@ -614,7 +614,7 @@ void Ekf::controlGpsFusion() // use GPS velocity data to check and correct yaw angle if a FW vehicle if (_control_status.flags.fixed_wing && _control_status.flags.in_air) { // if flying a fixed wing aircraft, do a complete reset that includes yaw - realignYawGPS(); + _flt_mag_align_complete = realignYawGPS(); } resetVelocity();