mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Using anas instead for getValue
This commit is contained in:
parent
828372ab29
commit
50997721e2
1 changed files with 1 additions and 1 deletions
|
@ -1662,7 +1662,7 @@ FORCEINLINE void evalTrims()
|
|||
#if !defined(PCBTARANIS)
|
||||
if (i==THR_STICK && g_model.thrTrim) {
|
||||
int16_t trimMin = g_model.extendedTrims ? TRIM_EXTENDED_MIN : TRIM_MIN;
|
||||
trim = (((g_model.throttleReversed)?(int32_t)(trim+trimMin):(int32_t)(trim-trimMin)) * (RESX-getValue(MIXSRC_Thr))) >> (RESX_SHIFT+1);
|
||||
trim = (((g_model.throttleReversed)?(int32_t)(trim+trimMin):(int32_t)(trim-trimMin)) * (RESX-anas[i])) >> (RESX_SHIFT+1);
|
||||
}
|
||||
#endif
|
||||
if (trimsCheckTimer > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue