Unfortunately, I do not have access to the motors for a little bit to get the exact error message.
I just opened a timed robot base and just added the two lines below, nothing else. The goal was to simply test an intake prototype and get some encoder reading, unfortunately this wasn’t possible due to the aforementioned error.
So I tried to do this, and found that you get a compile error if you try to do this. GetEncoder requires arguements defining the encoder type and counts per rev.
Can the measurement period for a Vortex be set to 1ms?
The Javadoc says:
Set the position measurement period used to calculate the velocity of a quadrature or hall sensor encoder. For a quadrature encoder, this number may be between 1 and 100 (default). For a hall sensor, this number may be between 8 and 64. The default for a hall sensor is 32ms.
And when I try to set it to 1 on a Vortex, it complains about the lowest possible value being 8, because its a “hall sensor” when it shouldn’t be.