You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ServoImpl#getPosition,reverse is called on the unscaled position in getPosition. While in ServoImpl#setPosition, reverse is called on scaled values. This means Servo#getPosition return incorrect values for reversed scaled servos.
Example
Let's say we have a reversed servo scaled from 0 to 0.5 instead of from 0 to 1:
Setting:
setPosition(0.5) -> sets an actual position of 0.25 for the servo.