mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 19:43:33 +08:00
AirspeedSelector: parameter clean up and disable re-enabling if clear delay negative
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -227,7 +227,8 @@ AirspeedValidator::update_airspeed_valid_status(const uint64_t timestamp)
|
||||
_airspeed_valid = false;
|
||||
}
|
||||
|
||||
} else if ((timestamp - _time_checks_failed) > _checks_clear_delay * 1_s) {
|
||||
} else if (_checks_clear_delay > 0.f && (timestamp - _time_checks_failed) > _checks_clear_delay * 1_s) {
|
||||
// disable the re-enabling if the clear delay is negative
|
||||
_airspeed_valid = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user