Quote:
Originally Posted by FireAmpersand
First off is the wires go back to the roboRIO or straight to the Talon srx (CAN).
|
So the wires go to a talon
Encoder Breakout board. You can find the wiring specifications on the andymark encoder description page.
In code, change the control mode of the motor
Code:
motor.changeControlMode(CANTalon.TalonControlMode.Position)
To get the sensor feedback you can view it in networktables by adding
and to set the motor to a certain encoder position
Code:
motor.set(int encValue)