fix: Throttle invert and gimbal dead zone (#3864)
This commit is contained in:
+2
-2
@@ -526,7 +526,7 @@ void evalInputs(uint8_t mode)
|
||||
#if defined(STICK_DEAD_ZONE)
|
||||
// dead zone invented by FlySky in my opinion it should goes into ADC
|
||||
// float calculations are not efficient
|
||||
if (g_eeGeneral.stickDeadZone && ch != inputMappingConvertMode(inputMappingGetThrottle())) {
|
||||
if (g_eeGeneral.stickDeadZone && ch != inputMappingGetThrottle()) {
|
||||
if (v > P_OFFSET) {
|
||||
// y=ax+b
|
||||
v = (int)((aParam * (float)v) - bParam);
|
||||
@@ -539,7 +539,7 @@ void evalInputs(uint8_t mode)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (g_model.throttleReversed && ch==inputMappingConvertMode(inputMappingGetThrottle())) {
|
||||
if (g_model.throttleReversed && ch == inputMappingGetThrottle()) {
|
||||
v = -v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user