Copter: check for takeoff before continuing after land

This commit is contained in:
Iampete1 2021-09-07 01:55:47 +01:00 committed by Randy Mackay
parent d9e30452ed
commit ec5d5b4471

View File

@ -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