Copter: check for takeoff before continuing after land
This commit is contained in:
parent
d9e30452ed
commit
ec5d5b4471
@ -1658,7 +1658,7 @@ bool ModeAuto::verify_land()
|
||||
case State::Descending:
|
||||
// rely on THROTTLE_LAND mode to correctly update landing status
|
||||
retval = copter.ap.land_complete && (motors->get_spool_state() == AP_Motors::SpoolState::GROUND_IDLE);
|
||||
if (retval && !mission.continue_after_land() && copter.motors->armed()) {
|
||||
if (retval && !mission.continue_after_land_check_for_takeoff() && copter.motors->armed()) {
|
||||
/*
|
||||
we want to stop mission processing on land
|
||||
completion. Disarm now, then return false. This
|
||||
|
Loading…
Reference in New Issue
Block a user