mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_NavEKF: Fix bug affecting in-flight GPS acquisition
This bug caused velocities to be reset to zero
This commit is contained in:
parent
b9b6938b1d
commit
1c244af3d8
@ -4014,6 +4014,7 @@ void NavEKF::readGpsData()
|
|||||||
if (vehicleArmed && _fusionModeGPS != 3) {
|
if (vehicleArmed && _fusionModeGPS != 3) {
|
||||||
constPosMode = false;
|
constPosMode = false;
|
||||||
PV_AidingMode = AID_ABSOLUTE;
|
PV_AidingMode = AID_ABSOLUTE;
|
||||||
|
gpsNotAvailable = false;
|
||||||
// Initialise EKF position and velocity states
|
// Initialise EKF position and velocity states
|
||||||
ResetPosition();
|
ResetPosition();
|
||||||
ResetVelocity();
|
ResetVelocity();
|
||||||
|
Loading…
Reference in New Issue
Block a user