AP_NavEKF2: fix bug preventing in-flight alignment
This commit is contained in:
parent
16cb7078cd
commit
74121fdaeb
@ -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…
Reference in New Issue
Block a user