mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 06:51:37 +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();
|
updateStuckCheck();
|
||||||
|
updateFogCheck(getDistBottom(), _sample.time_us);
|
||||||
if (!_is_stuck) {
|
|
||||||
updateFogCheck(getDistBottom(), _sample.time_us);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_is_stuck && !_is_blocked) {
|
if (!_is_stuck && !_is_blocked) {
|
||||||
_is_sample_valid = true;
|
_is_sample_valid = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user