From c854ea771d1390d9b2a75d7a3c575ce5f9ec1464 Mon Sep 17 00:00:00 2001 From: borisbstyle Date: Tue, 7 Feb 2017 21:14:24 +0100 Subject: [PATCH] Fix for uncalculated throttle --- src/main/fc/config.c | 1 + src/main/fc/fc_rc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/fc/config.c b/src/main/fc/config.c index 946ab49c4..f63305f91 100755 --- a/src/main/fc/config.c +++ b/src/main/fc/config.c @@ -1164,6 +1164,7 @@ void changeControlRateProfile(uint8_t profileIndex) profileIndex = MAX_RATEPROFILES - 1; } setControlRateProfile(profileIndex); + generateThrottleCurve(); } void beeperOffSet(uint32_t mask) diff --git a/src/main/fc/fc_rc.c b/src/main/fc/fc_rc.c index 9787a0387..d7e50f627 100755 --- a/src/main/fc/fc_rc.c +++ b/src/main/fc/fc_rc.c @@ -296,7 +296,7 @@ void updateRcCommands(void) tmp = (uint32_t)(tmp - rxConfig()->mincheck) * PWM_RANGE_MIN / (PWM_RANGE_MAX - rxConfig()->mincheck); } - rcLookupThrottle(tmp); + rcCommand[THROTTLE] = rcLookupThrottle(tmp); if (feature(FEATURE_3D) && IS_RC_MODE_ACTIVE(BOX3DDISABLESWITCH) && !failsafeIsActive()) { fix12_t throttleScaler = qConstruct(rcCommand[THROTTLE] - 1000, 1000);