|
|
|
@ -900,7 +900,6 @@ void ModeAuto::wp_run()
@@ -900,7 +900,6 @@ void ModeAuto::wp_run()
|
|
|
|
|
// if not armed set throttle to zero and exit immediately
|
|
|
|
|
if (is_disarmed_or_landed()) { |
|
|
|
|
make_safe_ground_handling(); |
|
|
|
|
wp_nav->wp_and_spline_init(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -997,7 +996,6 @@ void ModeAuto::loiter_run()
@@ -997,7 +996,6 @@ void ModeAuto::loiter_run()
|
|
|
|
|
// if not armed set throttle to zero and exit immediately
|
|
|
|
|
if (is_disarmed_or_landed()) { |
|
|
|
|
make_safe_ground_handling(); |
|
|
|
|
wp_nav->wp_and_spline_init(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1023,7 +1021,7 @@ void ModeAuto::loiter_to_alt_run()
@@ -1023,7 +1021,7 @@ void ModeAuto::loiter_to_alt_run()
|
|
|
|
|
{ |
|
|
|
|
// if not auto armed or motor interlock not enabled set throttle to zero and exit immediately
|
|
|
|
|
if (is_disarmed_or_landed() || !motors->get_interlock()) { |
|
|
|
|
zero_throttle_and_relax_ac(); |
|
|
|
|
make_safe_ground_handling(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|