We are using a telescoping arm to pick up and place game pieces. On the telescoping arm, there is an SRX Magnetic Encoder. The goal is for the encoder to stop the arm from extending too far and falling apart. When the encoder is unplugged, the arm is able to extend and retract freely. When it is plugged in, the arm can extend but not retract. All references to the encoder in our code have been commented out, so we are confused why there are still issues.
The full robot
The gearbox with the motor and encoder
The arm partially extended
The motor controller when trying to retract the arm