mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 13:13:33 +08:00
EKF: Fix bug when resetting position and velocities for fw due to something else than bad yaw estimate
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
This commit is contained in:
@@ -454,6 +454,8 @@ void Ekf::controlGpsFusion()
|
||||
if (_control_status.flags.fixed_wing) {
|
||||
// if flying a fixed wing aircraft, do a complete reset that includes yaw, velocity and position
|
||||
realignYawGPS();
|
||||
resetVelocity();
|
||||
resetPosition();
|
||||
} else {
|
||||
resetVelocity();
|
||||
resetPosition();
|
||||
|
||||
Reference in New Issue
Block a user