ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Move rudder arming up into RC_Channel library

Open peterbarker opened this issue 4 years ago • 10 comments

This will make rudder-arming consistent across our vehicles.

One known behaviour change is that the rover arm interval has moved from 2 to 3 seconds (to be like Copter and Plane).

Other known changes in behaviour:

  • Copter and Rover will try to arm if your throttle is non-zero, and you will get a warning that your throttle is non-zero. In master we don't try to arm. I think this new behaviour is far preferable from a user's standpoint as they're told why they can't arm right now in the case they meant to arm! The new code has the same behaviour as Plane in master

We can't move the rudder-specific arming checks into the RC_Channels library as ToyMode also arms with a reason of "rudder" and presumably wants the same checks

peterbarker avatar Dec 17 '20 21:12 peterbarker

Tested in SITL - standard arming and RUDDER_DISARM values.

peterbarker avatar Apr 01 '21 14:04 peterbarker

@rmackay9 also noted on the call that he's happy for the 10s trim feature to be removed if whoever removes it ensures docs are updated

tridge avatar Apr 07 '21 07:04 tridge

Docs for autotrim are here: https://ardupilot.org/copter/docs/autotrim.html and here: https://ardupilot.org/copter/docs/arming_the_motors.html. The 2nd link in particular has a warning that could be updated to be clear it only applies to 4.0 (and earlier)

rmackay9 avatar Apr 07 '21 07:04 rmackay9

@robustini,

how do you feel about us removing the ability to start "auto trim" by holding the sticks in the arming position for 10+ seconds?

I think very few people use auto trim any more and even fewer know that it can be started using this arming method.. but what do you think?

rmackay9 avatar Apr 07 '21 23:04 rmackay9

I've put this onto a Rover and made sure it arms/disarms and checks the throttle.

I've put this onto a Plane and made sure it arms/disarms, honours RUDDER_ARMING and the throttle checks.

peterbarker avatar Sep 20 '22 10:09 peterbarker

This needs testing on a Copter.

peterbarker avatar Sep 27 '22 05:09 peterbarker