mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 23:43:34 +08:00
land_detector: relax data timeouts uniformly
* if we're hitting these timeouts there are much larger problems in the system
This commit is contained in:
@@ -74,7 +74,7 @@ bool VtolLandDetector::_get_landed_state()
|
||||
bool landed = MulticopterLandDetector::_get_landed_state();
|
||||
|
||||
// for vtol we additionally consider airspeed
|
||||
if (hrt_elapsed_time(&_airspeed.timestamp) < 500 * 1000 && _airspeed.confidence > 0.99f
|
||||
if (hrt_elapsed_time(&_airspeed.timestamp) < 1_s && _airspeed.confidence > 0.99f
|
||||
&& PX4_ISFINITE(_airspeed.indicated_airspeed_m_s)) {
|
||||
|
||||
_airspeed_filtered = 0.95f * _airspeed_filtered + 0.05f * _airspeed.indicated_airspeed_m_s;
|
||||
|
||||
Reference in New Issue
Block a user