From 44c5754e36d51e64342a0b4c2a01c85f96112b3a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Aug 2023 13:45:12 +1000 Subject: [PATCH] AP_Airspeed: increased timeout on DroneCAN airspeed data the data is sent at 20Hz, which means a single lost packet with 10Hz reading resulted in an unhealthy sensor --- libraries/AP_Airspeed/AP_Airspeed_DroneCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Airspeed/AP_Airspeed_DroneCAN.cpp b/libraries/AP_Airspeed/AP_Airspeed_DroneCAN.cpp index 4b5db8bd0e..fc143b11c0 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_DroneCAN.cpp +++ b/libraries/AP_Airspeed/AP_Airspeed_DroneCAN.cpp @@ -148,7 +148,7 @@ bool AP_Airspeed_DroneCAN::get_differential_pressure(float &pressure) { WITH_SEMAPHORE(_sem_airspeed); - if ((AP_HAL::millis() - _last_sample_time_ms) > 100) { + if ((AP_HAL::millis() - _last_sample_time_ms) > 250) { return false; }