We have one of the FIRSTChoice encoders (http://firstchoicebyandymark.com/fc17-033) with TalonSRXs on our drivetrain and we’re having issues. The encoder will give us a seemingly random value (-1, 214, etc.) that changes only slightly when we drive. We’ve double checked that the encoder’s been installed correctly, and we still get these odd values even when we’re looking at the webpage for monitoring the robot (so I don’t think it’s a code problem unless it’s a setting on the talon itself). Any ideas what might be causing this?
Thanks!
Are you using c++? improper type casting can produce results like this. Other than that, I’d suspect a hardware issue (loose connection, bad sensor, etc.) You may also want to try a different DIO port.