multiwii/baseflight

RC input values are reversed when using servo mixer rules

lazd opened this issue · 0 comments

lazd commented

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