Fixes #1407 - Strange input interaction when Throttle trim idle only

This commit is contained in:
Damjan Adamic
2014-06-30 17:03:59 +02:00
parent f643f0be85
commit b5cdd60367
+1 -1
View File
@@ -1640,7 +1640,7 @@ FORCEINLINE void evalTrims()
if (i==THR_STICK && g_model.thrTrim) { if (i==THR_STICK && g_model.thrTrim) {
if (g_model.throttleReversed) if (g_model.throttleReversed)
trim = -trim; trim = -trim;
int16_t v = anas[i]; int16_t v = getValue(MIXSRC_Thr);
int32_t vv = ((int32_t)trim-TRIM_MIN)*(RESX-v)>>(RESX_SHIFT+1); int32_t vv = ((int32_t)trim-TRIM_MIN)*(RESX-v)>>(RESX_SHIFT+1);
trim = vv; trim = vv;
} }