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:
Daniel Agar
2020-01-20 17:14:00 -05:00
committed by GitHub
parent d1260aa28c
commit 635ceccfdb
3 changed files with 5 additions and 16 deletions
@@ -66,7 +66,7 @@ bool FixedwingLandDetector::_get_landed_state()
bool landDetected = false;
if (hrt_elapsed_time(&_vehicle_local_position.timestamp) < 500_ms) {
if (hrt_elapsed_time(&_vehicle_local_position.timestamp) < 1_s) {
// Horizontal velocity complimentary filter.
float val = 0.97f * _velocity_xy_filtered + 0.03f * sqrtf(_vehicle_local_position.vx * _vehicle_local_position.vx +