AP_NavEKF2: Fix casting build error

This commit is contained in:
Paul Riseborough 2020-04-21 11:07:16 +10:00 committed by Andrew Tridgell
parent 53df8a0238
commit 6952d83f00

View File

@ -240,8 +240,8 @@ void NavEKF2_core::setAidingMode()
}
posAidLossCritical = (imuSampleTime_ms - lastRngBcnPassTime_ms > maxLossTime_ms) &&
(imuSampleTime_ms - lastPosPassTime_ms > maxLossTime_ms);
posAidLossPending = (imuSampleTime_ms - lastRngBcnPassTime_ms > frontend->_gsfResetDelay) &&
(imuSampleTime_ms - lastPosPassTime_ms > frontend->_gsfResetDelay);
posAidLossPending = (imuSampleTime_ms - lastRngBcnPassTime_ms > (uint32_t)frontend->_gsfResetDelay) &&
(imuSampleTime_ms - lastPosPassTime_ms > (uint32_t)frontend->_gsfResetDelay);
}
if (attAidLossCritical) {