Fix polarity bug in rc expo

This commit is contained in:
borisbstyle 2017-01-05 20:49:59 +01:00
parent 56f0083237
commit b59fa071a8
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void calculateSetpointRate(int axis, int16_t rc) {
if (rcExpo) { if (rcExpo) {
float expof = rcExpo / 100.0f; float expof = rcExpo / 100.0f;
rcCommandf = rcCommandf * power3(rcDeflection[axis]) * expof + rcCommandf * (1-expof); rcCommandf = rcCommandf * power3(rcDeflectionAbs[axis]) * expof + rcCommandf * (1-expof);
} }
angleRate = 200.0f * rcRate * rcCommandf; angleRate = 200.0f * rcRate * rcCommandf;