Skip to content
Snippets Groups Projects
Commit 6c156663 authored by ChristophTobler's avatar ChristophTobler Committed by Lorenz Meier
Browse files

ekf2: accept min/max range

parent 1b7838c2
No related branches found
No related tags found
No related merge requests found
......@@ -506,8 +506,8 @@ void Ekf2::task_main()
if (range_finder_updated) {
orb_copy(ORB_ID(distance_sensor), range_finder_sub, &range_finder);
if (range_finder.min_distance >= range_finder.current_distance
|| range_finder.max_distance <= range_finder.current_distance) {
if (range_finder.min_distance > range_finder.current_distance
|| range_finder.max_distance < range_finder.current_distance) {
range_finder_updated = false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment