Copter: Payload Place: Change PLDP_RNG_MIN to PLDP_RNG_MAX

This commit is contained in:
Leonard Hall 2024-03-02 12:27:36 +10:30 committed by Peter Barker
parent cbf1e8c442
commit fa58983332
1 changed files with 1 additions and 1 deletions

View File

@ -1408,7 +1408,7 @@ void PayloadPlace::run_vertical_control()
gcs().send_text(MAV_SEVERITY_WARNING, "%s PLDP_RNG_MAX set and rangefinder not enabled", prefix_str);
break;
} else if (copter.rangefinder_alt_ok() && (copter.rangefinder_state.glitch_count == 0) && (copter.rangefinder_state.alt_cm > g2.pldp_range_finder_maximum_m * 100.0)) {
// range finder altitude is above maximum
// range finder altitude is above minimum
place_start_time_ms = now_ms;
break;
}