1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 11:29:51 +03:00

Fixes #2492 - Thanks go to Kilrah

This commit is contained in:
bsongis 2015-07-18 22:25:25 +02:00 committed by Andre Bernet
parent 863ed513c0
commit d23a1f5739

View file

@ -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)
calibratedStick[ch] = v;
#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;
anas[ch] = v; // set values for mixer
#endif