AP_RangeFinder: Delete unnecessary judgment

This commit is contained in:
murata 2018-04-01 09:49:44 +09:00 committed by WickedShell
parent 3a4cbdd41f
commit 49b0a00182

View File

@ -108,7 +108,7 @@ void AP_RangeFinder_analog::update(void)
} else {
dist_m = scaling / (v - offset);
}
if (isinf(dist_m) || dist_m > _max_distance_cm * 0.01f) {
if (dist_m > _max_distance_cm * 0.01f) {
dist_m = _max_distance_cm * 0.01f;
}
break;