Code for potentiometers

................

Why 2 pots? The steering input will match the steering output so you shouldn't need to pots to tell the steering position.

You will have to look at the current position and compare it to the desired position and then power the motor to move to the desired position, You might need to have some reduction in speed as you approach the desired position and a small amount of deadband around the desired position,