Skip to content

Commit

Permalink
Copter: Payload Place: Change PLDP_RNG_MIN to PLDP_RNG_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall authored and peterbarker committed Aug 9, 2024
1 parent 1ee8bd7 commit 265dd27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/mode_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 265dd27

Please sign in to comment.