mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 20:35:17 +03:00
Fixes #2492 - Thanks go to Kilrah
This commit is contained in:
parent
863ed513c0
commit
d23a1f5739
1 changed files with 5 additions and 5 deletions
|
@ -482,15 +482,15 @@ void evalInputs(uint8_t mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HELI)
|
|
||||||
if (d && (ch==ELE_STICK || ch==AIL_STICK)) {
|
|
||||||
v = (int32_t(v) * calc100toRESX(g_model.swashR.value)) / int32_t(d);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(VIRTUALINPUTS)
|
#if defined(VIRTUALINPUTS)
|
||||||
calibratedStick[ch] = v;
|
calibratedStick[ch] = v;
|
||||||
#else
|
#else
|
||||||
|
#if defined(HELI)
|
||||||
|
if (d && (ch==ELE_STICK || ch==AIL_STICK)) {
|
||||||
|
v = (int32_t(v) * calc100toRESX(g_model.swashR.value)) / int32_t(d);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
rawAnas[ch] = v;
|
rawAnas[ch] = v;
|
||||||
anas[ch] = v; // set values for mixer
|
anas[ch] = v; // set values for mixer
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue