mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-27 00:20:05 +08:00
range_finder_checks: set range height to valid if signal quality is non-zero
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
committed by
Paul Riseborough
parent
6299d8199c
commit
6bc6f26043
@@ -90,6 +90,8 @@ void Ekf::updateRangeDataValidity()
|
||||
} else if (_time_bad_rng_signal_quality > 0 && _imu_sample_delayed.time_us - _time_bad_rng_signal_quality > RNG_BAD_SIG_HYST) {
|
||||
_time_bad_rng_signal_quality = 0;
|
||||
_rng_hgt_valid = true;
|
||||
} else if (_time_bad_rng_signal_quality == 0) {
|
||||
_rng_hgt_valid = true;
|
||||
}
|
||||
|
||||
// Check if excessively tilted
|
||||
|
||||
Reference in New Issue
Block a user