Our Rev Througbore Encoder is reporting incorrect values. getPosition() is returning tiny negative numbers in prints while shuffleboard says 0 and Rev hardware client says the correct number.
The 0.149 is the correct number. The -3.3 * 10^-6 is the issue. That is what is coming out in the prints and Shuffleboard reports as 0 likely because it is so small.
I am intending the operating range to be between 0.023 and 0.35.
Okay, turns out that the problem was an incredibly dumb mistake on my part. I had disconnected part of the CAN bus to move some stuff and though that not everything was needed for testing. Turns out that the RoboRIO was one of those “not needed” things.
Stuff does not work when the RIO is unplugged. Who would have thought?