forked from Archive/PX4-Autopilot
range_finder_checks: do not override range_hgt_valid flag with rng_stuck flag
Thif fixes the issue where the range finder data is always set to valid if not stuck.
This commit is contained in:
parent
d0fe1f032a
commit
d06dc33ded
|
@ -104,7 +104,7 @@ void Ekf::updateRangeDataValidity()
|
|||
|
||||
updateRangeDataStuck();
|
||||
|
||||
_rng_hgt_valid = !_control_status.flags.rng_stuck;
|
||||
_rng_hgt_valid = _rng_hgt_valid && !_control_status.flags.rng_stuck;
|
||||
}
|
||||
|
||||
void Ekf::updateRangeDataStuck()
|
||||
|
|
Loading…
Reference in New Issue