forked from Archive/PX4-Autopilot
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:
parent
9d00a3ae4d
commit
2afbd09c63
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue