mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Copter: use ap.throttle_zero instead of rc_3.control_in in auto_disarm_check
This commit is contained in:
parent
a04ec79efa
commit
d0d26b6878
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user