|
Obtaining Velocity from an encoder
As far as I know, the WPI robotics library still has a glitch in that it cannot calculate the velocity from more than one encoder. So, I want to write manual code to calculate velocity.
Is the code in the picture sufficient, or should I be doing some averaging or some other way to get rid of noise? Note that it is just a quick mod of the example code.
|