1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Merge branch 'tricopter-yaw' of git://github.com/sherlockflight/cleanflight-dev into sherlockflight-tricopter-yaw

This commit is contained in:
Dominic Clifton 2015-04-22 21:21:17 +02:00
commit 0d8889c8ef

View file

@ -702,7 +702,9 @@ void loop(void)
// If we're armed, at minimum throttle, and we do arming via the
// sticks, do not process yaw input from the rx. We do this so the
// motors do not spin up while we are trying to arm or disarm.
if (isUsingSticksForArming() && rcData[THROTTLE] <= masterConfig.rxConfig.mincheck) {
// Allow yaw control for tricopters if the user wants the servo to move even when unarmed.
if (isUsingSticksForArming() && rcData[THROTTLE] <= masterConfig.rxConfig.mincheck
&& !(masterConfig.mixerMode == MIXER_TRI && masterConfig.mixerConfig.tri_unarmed_servo)) {
rcCommand[YAW] = 0;
}