run fog check independently from stuck check

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2025-02-10 16:38:44 +03:00
committed by Marco Hauswirth
parent 8cedef2dc4
commit 2b75d2e738
@@ -83,10 +83,7 @@ void SensorRangeFinder::updateValidity(uint64_t current_time_us)
}
updateStuckCheck();
if (!_is_stuck) {
updateFogCheck(getDistBottom(), _sample.time_us);
}
updateFogCheck(getDistBottom(), _sample.time_us);
if (!_is_stuck && !_is_blocked) {
_is_sample_valid = true;