mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 12:43:33 +08:00
EKF: Use parameter for stuck range test threshold
The default has been reduced to make it suitable for low altitude optical flow navigation.
This commit is contained in:
committed by
Lorenz Meier
parent
628079719f
commit
748446b92f
+1
-1
@@ -1184,7 +1184,7 @@ void Ekf::checkRangeDataValidity()
|
||||
_control_status.flags.in_air) {
|
||||
|
||||
// require a variance of rangefinder values to check for "stuck" measurements
|
||||
if (_rng_stuck_max_val - _rng_stuck_min_val > 1.0f) {
|
||||
if (_rng_stuck_max_val - _rng_stuck_min_val > _params.range_stuck_threshold) {
|
||||
_time_last_rng_ready = _range_sample_delayed.time_us;
|
||||
_rng_stuck_min_val = 0.0f;
|
||||
_rng_stuck_max_val = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user