Skip to content

Commit

Permalink
Copter: Clear the counter when rudder arm operation is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Jun 2, 2024
1 parent eb8eeba commit 30d933c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ArduCopter/motors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 30d933c

Please sign in to comment.