From c0a3cf5ba33bea7def18b7c9bb355debe6ee7c8e Mon Sep 17 00:00:00 2001 From: mikeller Date: Thu, 15 Jun 2017 01:08:53 +1200 Subject: [PATCH] Fixed maximum value of itermAcceleratorGain, reverted proper scaling. --- src/main/fc/fc_rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/fc/fc_rc.c b/src/main/fc/fc_rc.c index bc0c47eca..c6e5d5422 100755 --- a/src/main/fc/fc_rc.c +++ b/src/main/fc/fc_rc.c @@ -166,7 +166,7 @@ static void scaleRcCommandToFpvCamAngle(void) { const int16_t rcCommandSpeed = rcCommand[THROTTLE] - rcCommandThrottlePrevious[index]; if(ABS(rcCommandSpeed) > throttleVelocityThreshold) - pidSetItermAccelerator(0.001f * currentPidProfile->itermAcceleratorGain); + pidSetItermAccelerator(CONVERT_PARAMETER_TO_FLOAT(currentPidProfile->itermAcceleratorGain)); else pidSetItermAccelerator(1.0f); }