Merge pull request #1412 from opentx/projectkk2glider/issue_1407
Fixes #1407 - Strange input interaction when Throttle trim idle only
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user