Fixes #2492 - Thanks go to Kilrah
This commit is contained in:
+5
-5
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user