Quote:
Originally Posted by mhsrobotics3616
thanks for the replies. the problem is that we dont want it just hold a position we want to be able to have control with a joystick thats why i thought it be based on power output versus encoder count. i know that for holding a position i can just use the output degree of the encoder as the setpoint.
|
You can use the output of the joystick as the setpoint, and the encoder signal as your process variable (feedback).
setpoint and processVariable are inputs to a PID, and the PID takes care of adjusting motor voltage to go to and hold the commanded setpoint.