Copter: use ap.throttle_zero instead of rc_3.control_in in auto_disarm_check

This commit is contained in:
Jonathan Challinger 2014-10-10 02:11:24 -07:00 committed by Randy Mackay
parent a04ec79efa
commit d0d26b6878

View File

@ -99,7 +99,7 @@ static void arm_motors_check()
static void auto_disarm_check()
{
// exit immediately if we are already disarmed or throttle is not zero
if (!motors.armed() || g.rc_3.control_in > 0) {
if (!motors.armed() || !ap.throttle_zero) {
auto_disarming_counter = 0;
return;
}