mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 00:50:34 +08:00
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:
@@ -104,7 +104,7 @@ void Ekf::updateRangeDataValidity()
|
|||||||
|
|
||||||
updateRangeDataStuck();
|
updateRangeDataStuck();
|
||||||
|
|
||||||
_rng_hgt_valid = !_control_status.flags.rng_stuck;
|
_rng_hgt_valid = _rng_hgt_valid && !_control_status.flags.rng_stuck;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ekf::updateRangeDataStuck()
|
void Ekf::updateRangeDataStuck()
|
||||||
|
|||||||
Reference in New Issue
Block a user