setPositionSetpoint

fun setPositionSetpoint(setpoint: Angle)

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. This mode targets a relative setpoint that tracks total rotations.

Parameters

setpoint

Target encoder position.