From 0395dbef0a2c518017e27e78ae0ef9edb1e0d2c4 Mon Sep 17 00:00:00 2001 From: openfsguruh Date: Mon, 16 Dec 2013 11:02:11 +0100 Subject: [PATCH] Throttle counter takes trainer input into account Now uses combined input from calibratedSticks and trainer port into account for throttle calculation. --- radio/src/opentx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index d1612ec1d..745893911 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -3829,7 +3829,8 @@ void doMixerCalculations() if (val<0) val=0; // prevent val be negative, which would corrupt throttle trace and timers; could occur if safetyswitch is smaller than limits } else { - val = RESX + calibratedStick[g_model.thrTraceSrc == 0 ? THR_STICK : g_model.thrTraceSrc+NUM_STICKS-1]; + // val = RESX + calibratedStick[g_model.thrTraceSrc == 0 ? THR_STICK : g_model.thrTraceSrc+NUM_STICKS-1]; + val = RESX + rawAnas[g_model.thrTraceSrc == 0 ? THR_STICK : g_model.thrTraceSrc+NUM_STICKS-1]; } #if !defined(CPUM64)