mirror of https://github.com/ArduPilot/ardupilot
Copter: Payload Place: Change PLDP_RNG_MIN to PLDP_RNG_MAX
This commit is contained in:
parent
cbf1e8c442
commit
fa58983332
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue