Fix expo curve
This commit is contained in:
parent
b1585f4bd1
commit
2987c7d8c8
|
@ -193,7 +193,7 @@ float calculateSetpointRate(int axis, int16_t rc) {
|
||||||
|
|
||||||
if (rcExpo) {
|
if (rcExpo) {
|
||||||
float expof = rcExpo / 100.0f;
|
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;
|
angleRate = 200.0f * rcRate * rcCommandf;
|
||||||
|
|
Loading…
Reference in New Issue