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:
bresch 2020-01-11 23:25:10 +01:00 committed by Paul Riseborough
parent d0fe1f032a
commit d06dc33ded
1 changed files with 1 additions and 1 deletions

View File

@ -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()