Fix expo curve

This commit is contained in:
borisbstyle 2016-09-06 00:46:52 +02:00
parent b1585f4bd1
commit 2987c7d8c8
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ float calculateSetpointRate(int axis, int16_t rc) {
if (rcExpo) {
float expof = rcExpo / 100.0f;
rcCommandf = rcCommandf * (expof * (powerf(rcInput[axis], currentControlRateProfile->rcExpoPwr)) + rcInput[axis]*(1-expof));
rcCommandf = rcCommandf * powerf(rcInput[axis], currentControlRateProfile->rcExpoPwr) * expof + rcCommandf * (1-expof);
}
angleRate = 200.0f * rcRate * rcCommandf;