Commander: AirspeedCheck: increase timeout threshold to 2s

1s gives some false positives at boot up, as the airspeed selector only
starts publishing 2s after its startup.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2023-12-06 15:31:31 +01:00
parent 9d00a3ae4d
commit 2afbd09c63
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ void AirspeedChecks::checkAndReport(const Context &context, Report &reporter)
airspeed_validated_s airspeed_validated;
if (_airspeed_validated_sub.copy(&airspeed_validated) && hrt_elapsed_time(&airspeed_validated.timestamp) < 1_s) {
if (_airspeed_validated_sub.copy(&airspeed_validated) && hrt_elapsed_time(&airspeed_validated.timestamp) < 2_s) {
reporter.setIsPresent(health_component_t::differential_pressure);