@ -589,7 +589,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
// @Param: MIS_DONE_BEHAVE
// @DisplayName: Mission done behave
// @Description: Behaviour after mission completes
// @Values: 0:Hold,1:Loiter,2:Acro
// @Values: 0:Hold,1:Loiter,2:Acro,3:Manual
// @User: Standard
AP_GROUPINFO("MIS_DONE_BEHAVE", 38, ParametersG2, mis_done_behave, 0),
@ -327,7 +327,8 @@ private:
enum Mis_Done_Behave {
MIS_DONE_BEHAVE_HOLD = 0,
MIS_DONE_BEHAVE_LOITER = 1,
MIS_DONE_BEHAVE_ACRO = 2
MIS_DONE_BEHAVE_ACRO = 2,
MIS_DONE_BEHAVE_MANUAL = 3
};
bool auto_triggered; // true when auto has been triggered to start
@ -449,6 +449,10 @@ void ModeAuto::exit_mission()
return;
}
if (g2.mis_done_behave == MIS_DONE_BEHAVE_MANUAL && rover.set_mode(rover.mode_manual, ModeReason::MISSION_END)) {
start_stop();