Replacing Servo Feedback Resistor to digital control

I haven't examined your code yet to see if I see anything that would explain the problem but I will later. Do you have a servo that doesn't have the dual mode feature that you can test to see if it has the same problem?