Skip to content

Commit

Permalink
Copter: guided mode fix for landing detector internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Apr 22, 2024
1 parent 8125f47 commit 7ba2079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/mode_guided.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ void ModeGuided::angle_control_run()

// TODO: use get_alt_hold_state
// landed with positive desired climb rate, takeoff
if (copter.ap.land_complete && (guided_angle_state.climb_rate_cms > 0.0f)) {
if (copter.ap.land_complete && positive_thrust_or_climbrate) {
zero_throttle_and_relax_ac();
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED);
if (motors->get_spool_state() == AP_Motors::SpoolState::THROTTLE_UNLIMITED) {
Expand Down

0 comments on commit 7ba2079

Please sign in to comment.