mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-04 04:58:53 +08:00
EKF: Use consistent method for recording completion of in-flight yaw alignment
This commit is contained in:
committed by
Daniel Agar
parent
ef5a87c1d4
commit
a0b9cb002e
+1
-1
@@ -614,7 +614,7 @@ void Ekf::controlGpsFusion()
|
|||||||
// use GPS velocity data to check and correct yaw angle if a FW vehicle
|
// 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 (_control_status.flags.fixed_wing && _control_status.flags.in_air) {
|
||||||
// if flying a fixed wing aircraft, do a complete reset that includes yaw
|
// if flying a fixed wing aircraft, do a complete reset that includes yaw
|
||||||
realignYawGPS();
|
_flt_mag_align_complete = realignYawGPS();
|
||||||
}
|
}
|
||||||
|
|
||||||
resetVelocity();
|
resetVelocity();
|
||||||
|
|||||||
Reference in New Issue
Block a user