|
|
|
@ -742,6 +742,7 @@ void Copter::ModeAuto::wp_run()
@@ -742,6 +742,7 @@ void Copter::ModeAuto::wp_run()
|
|
|
|
|
// if not armed set throttle to zero and exit immediately
|
|
|
|
|
if (!motors->armed() || !ap.auto_armed || ap.land_complete) { |
|
|
|
|
make_safe_shut_down(); |
|
|
|
|
wp_nav->wp_and_spline_init(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -771,6 +772,7 @@ void Copter::ModeAuto::spline_run()
@@ -771,6 +772,7 @@ void Copter::ModeAuto::spline_run()
|
|
|
|
|
// if not armed set throttle to zero and exit immediately
|
|
|
|
|
if (!motors->armed() || !ap.auto_armed || ap.land_complete) { |
|
|
|
|
make_safe_shut_down(); |
|
|
|
|
wp_nav->wp_and_spline_init(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -815,6 +817,7 @@ void Copter::ModeAuto::land_run()
@@ -815,6 +817,7 @@ void Copter::ModeAuto::land_run()
|
|
|
|
|
// if not armed set throttle to zero and exit immediately
|
|
|
|
|
if (!motors->armed() || !ap.auto_armed || ap.land_complete) { |
|
|
|
|
make_safe_shut_down(); |
|
|
|
|
loiter_nav->init_target(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -869,6 +872,7 @@ void Copter::ModeAuto::loiter_run()
@@ -869,6 +872,7 @@ void Copter::ModeAuto::loiter_run()
|
|
|
|
|
// if not armed set throttle to zero and exit immediately
|
|
|
|
|
if (!motors->armed() || !ap.auto_armed || ap.land_complete) { |
|
|
|
|
make_safe_shut_down(); |
|
|
|
|
wp_nav->wp_and_spline_init(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|