AP_NavEKF: Always declare a velocity measurement timeout if velocity not used
If position and velocity aiding is turned off, then the velocity measurement should always be reported as timed out.
This commit is contained in:
parent
95c3197170
commit
3b166372cc
@ -1999,8 +1999,8 @@ void NavEKF::FuseVelPosNED()
|
||||
velTestRatio = innovVelSumSq / (varVelSum * sq(_gpsVelInnovGate));
|
||||
// fail if the ratio is greater than 1
|
||||
velHealth = ((velTestRatio < 1.0f) || badIMUdata);
|
||||
// declare a timeout if we have not fused velocity data for too long or in constant velocity mode
|
||||
velTimeout = ((imuSampleTime_ms - velFailTime) > gpsRetryTime) || constVelMode;
|
||||
// declare a timeout if we have not fused velocity data for too long or not aiding
|
||||
velTimeout = (((imuSampleTime_ms - velFailTime) > gpsRetryTime) || PV_AidingMode == AID_NONE);
|
||||
// if data is healthy or in constant velocity mode we fuse it
|
||||
if (velHealth || constVelMode) {
|
||||
velHealth = true;
|
||||
|
Loading…
Reference in New Issue
Block a user