Using ControlMode.Position

Hello,
I was doing research on the types of ControlModes for the TalonSRXs and I read documentation saying how ControlMode.Position will make the talon go to a set position which can be incorporated with an encoder.
talonSrx.set(ControlMode.Position, somePosition);
I am unsure if I understand this completely, so if I were to have an encoder giving ticks on the motor, to set the motor to a specific position, would somePosition be the ticks I want the motor to spin towards?

This is correct. You can find more information on the docs here:
https://phoenix-documentation.readthedocs.io/en/latest/ch16_ClosedLoop.html

Make sure you set up the sensor according to the guidelines here:
https://phoenix-documentation.readthedocs.io/en/latest/ch14_MCSensor.html#sensor-check-with-motor-drive

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.