setPositionSetpoint
Set position control mode and position setpoint.
Uses positionPID to calculate closed-loop power and adds a static friction term (MotorPositionConstants.kS) scaled by the sign of error.
Parameters
setpoint
Target encoder position.