Current Control Mode

Current Control uses a PID controller to run the motor at a consistent current providing a consistent torque. The PID controller is run using the setpoint, in Amps, and the internally measured current draw.

It is called as shown below:

m_pidController.setReference(setPoint, CANSparkBase.ControlType.kCurrent);

API Docs: setReference

Last updated

Was this helpful?