Throttle counter takes trainer input into account

Now uses combined input from calibratedSticks and trainer port into
account for throttle calculation.
This commit is contained in:
openfsguruh
2013-12-16 11:02:11 +01:00
parent 39a4b8e39d
commit 0395dbef0a
+2 -1
View File
@@ -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)