|
Re: High Speed Encoder Problem
WPILib is basically the whole thing. I think encoder.getRate() works by reading the number of encoder counts from the FPGA and then dividing by the time elapsed between readings. As your RPMs increase, your noise will increase. Have you tried a moving average?
1000 ticks per second is actually pretty darn slow. That equates to about 470rpm. Is that the speed you're looking for?
__________________
|