|
|
|
@ -54,7 +54,7 @@ void Copter::ModeLand::run()
@@ -54,7 +54,7 @@ void Copter::ModeLand::run()
|
|
|
|
|
void Copter::ModeLand::gps_run() |
|
|
|
|
{ |
|
|
|
|
// disarm when the landing detector says we've landed
|
|
|
|
|
if (ap.land_complete) { |
|
|
|
|
if (ap.land_complete && motors->get_spool_mode() == AP_Motors::GROUND_IDLE) { |
|
|
|
|
copter.init_disarm_motors(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -105,7 +105,7 @@ void Copter::ModeLand::nogps_run()
@@ -105,7 +105,7 @@ void Copter::ModeLand::nogps_run()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// disarm when the landing detector says we've landed
|
|
|
|
|
if (ap.land_complete) { |
|
|
|
|
if (ap.land_complete && motors->get_spool_mode() == AP_Motors::GROUND_IDLE) { |
|
|
|
|
copter.init_disarm_motors(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|