AP_NavEKF2: fix bug preventing in-flight alignment

This commit is contained in:
Paul Riseborough 2016-05-21 14:04:42 +10:00 committed by Andrew Tridgell
parent 16cb7078cd
commit 74121fdaeb

View File

@ -101,6 +101,7 @@ void NavEKF2_core::realignYawGPS()
if (!yawAlignComplete && !use_compass()) {
// calculate new filter quaternion states from Euler angles
stateStruct.quat.from_euler(eulerAngles.x, eulerAngles.y, gpsYaw);
yawAlignComplete = true;
}