mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 07:30:34 +08:00
run fog check independently from stuck check
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user