Browse Source

AP_NavEKF2: fix bug preventing in-flight alignment

master
Paul Riseborough 9 years ago committed by Andrew Tridgell
parent
commit
74121fdaeb
  1. 1
      libraries/AP_NavEKF2/AP_NavEKF2_MagFusion.cpp

1
libraries/AP_NavEKF2/AP_NavEKF2_MagFusion.cpp

@ -101,6 +101,7 @@ void NavEKF2_core::realignYawGPS() @@ -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;
}

Loading…
Cancel
Save