multiwii / baseflight

32 bit fork of the MultiWii RC flight controller firmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RC input values are reversed when using servo mixer rules

lazd opened this issue · comments

Currently, an RC input value of 1000 yields a servo output of 2000 and visa-versa.

It seems the input value was subtracted from the middle value, when it should have been the other way around, like this:

data - middle = input + servoMiddle = servoValue
2000 - 1500 = +500 + 1500 = 2000
1500 - 1500 = 0 + 1500 = 1500
1000 - 1500 = -500 + 1500 = 1000