Apply THR trim when cross triming (#5664)
This commit is contained in:
+1
-1
@@ -644,7 +644,7 @@ int getStickTrimValue(int stick, int stickValue)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int trim = trims[stick];
|
int trim = trims[stick];
|
||||||
if (stick == THR_STICK) {
|
if (stick == virtualInputsTrims[THR_STICK]) {
|
||||||
if (g_model.thrTrim) {
|
if (g_model.thrTrim) {
|
||||||
int trimMin = g_model.extendedTrims ? 2*TRIM_EXTENDED_MIN : 2*TRIM_MIN;
|
int trimMin = g_model.extendedTrims ? 2*TRIM_EXTENDED_MIN : 2*TRIM_MIN;
|
||||||
trim = ((g_model.throttleReversed ? (trim+trimMin) : (trim-trimMin)) * (RESX-stickValue)) >> (RESX_SHIFT+1);
|
trim = ((g_model.throttleReversed ? (trim+trimMin) : (trim-trimMin)) * (RESX-stickValue)) >> (RESX_SHIFT+1);
|
||||||
|
|||||||
Reference in New Issue
Block a user