Quote:
Originally Posted by luanrookie
Yes, but when we run the program, the motor does not stop when the joystick and potentiometer are equal, he keeps turning and stopping and going back to spinning the opposite side.
|
Do some debugging. Look at the error term when "the joystick and potentiometer are equal". If the error is not zero, you've got a scaling or offset problem between your setpoint and your process variable.