AP_NavEKF2: writeExtNavData reset handles system time wrap
This commit is contained in:
parent
74f33d57c5
commit
fb7e68c53a
@ -903,7 +903,7 @@ void NavEKF2_core::writeExtNavData(const Vector3f &sensOffset, const Vector3f &p
|
||||
extNavMeasTime_ms = timeStamp_ms;
|
||||
}
|
||||
|
||||
if (resetTime_ms > extNavLastPosResetTime_ms) {
|
||||
if (resetTime_ms != extNavLastPosResetTime_ms) {
|
||||
extNavDataNew.posReset = true;
|
||||
extNavLastPosResetTime_ms = resetTime_ms;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user