AP_NavEKF2: Clarify definition for gps_glitching flag

This commit is contained in:
priseborough 2018-03-26 20:18:07 +11:00 committed by Randy Mackay
parent 5785523a0d
commit 12fd19ea26
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ void NavEKF2_core::updateFilterStatus(void)
filterStatus.flags.takeoff = expectGndEffectTakeoff; // The EKF has been told to expect takeoff and is in a ground effect mitigation mode
filterStatus.flags.touchdown = expectGndEffectTouchdown; // The EKF has been told to detect touchdown and is in a ground effect mitigation mode
filterStatus.flags.using_gps = ((imuSampleTime_ms - lastPosPassTime_ms) < 4000) && (PV_AidingMode == AID_ABSOLUTE);
filterStatus.flags.gps_glitching = !gpsAccuracyGood && (PV_AidingMode == AID_ABSOLUTE) && !extNavUsedForPos; // The GPS is glitching
filterStatus.flags.gps_glitching = !gpsAccuracyGood && (PV_AidingMode == AID_ABSOLUTE) && !extNavUsedForPos; // GPS glitching is affecting navigation accuracy
}
#endif // HAL_CPU_CLASS