mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
Copter: use ap.throttle_zero instead of rc_3.control_in in auto_disarm_check
This commit is contained in:
parent
f64f155c3a
commit
9fc62b5db2
@ -103,7 +103,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user