From 2afbd09c638b1569b0bab0225a0532411d795dfe Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Wed, 6 Dec 2023 15:31:31 +0100 Subject: [PATCH] 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 --- .../commander/HealthAndArmingChecks/checks/airspeedCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp b/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp index f766c6dd21..a9af3ff054 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp @@ -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);