From 30d933cc794d86995b3857b25f918d6e993a5eee Mon Sep 17 00:00:00 2001 From: muramura Date: Sun, 2 Jun 2024 16:41:28 +0900 Subject: [PATCH] Copter: Clear the counter when rudder arm operation is disabled --- ArduCopter/motors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduCopter/motors.cpp b/ArduCopter/motors.cpp index 34a3ff201b6ce..240ac3c972bbb 100644 --- a/ArduCopter/motors.cpp +++ b/ArduCopter/motors.cpp @@ -16,6 +16,7 @@ void Copter::arm_motors_check() // check if arming/disarm using rudder is allowed AP_Arming::RudderArming arming_rudder = arming.get_rudder_arming_type(); if (arming_rudder == AP_Arming::RudderArming::IS_DISABLED) { + arming_counter = 0; return; }