Disable stick command processing while ARMING_DISABLED_RUNAWAY_TAKEOFF is set
commit2610344266c024b708314012c610890bd038a861
authorBruce Luckcuck <github@etracer.net>
Sat, 24 Feb 2018 14:08:23 +0000 (24 09:08 -0500)
committerBruce Luckcuck <github@etracer.net>
Sat, 24 Feb 2018 14:29:19 +0000 (24 09:29 -0500)
tree829d541ae47ac0a2f403d7dddb5cee1bf4cec1f6
parentaec34a2b263ba8c55f4535f7a2b0d5eb932f510c
Disable stick command processing while ARMING_DISABLED_RUNAWAY_TAKEOFF is set

Addresses the rare possibility that if runway takeoff triggers and disarms while the pilot has the sticks in some valid stick command configuration. Prevents the stick command from processing until the craft is disarmed and the ARMING_DISABLED_RUNAWAY_TAKEOFF condition is cleared.

For example, if the pilot was mid throttle and went full yaw right and runway takeoff triggered, then camera control would have be entered.
src/main/fc/rc_controls.c
src/test/unit/rc_controls_unittest.cc