mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 01:57:35 +08:00
Merge pull request #341 from CarlOlsson/fix/fw_yaw_align2
EKF: If aligning yaw for fw with low GPS velocity, use mag
This commit is contained in:
+2
-2
@@ -464,8 +464,8 @@ bool Ekf::realignYawGPS()
|
||||
}
|
||||
|
||||
} else {
|
||||
// we were unable to verify the alignment
|
||||
return false;
|
||||
// attempt a normal alignment using the magnetometer
|
||||
return resetMagHeading(_mag_sample_delayed.mag);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user