In charge of keeping track of the position and speed of encoder. More...
Classes | |
class | encoderDriver.encoderDriver |
Encoder class to allow for several encoders to be used. More... | |
In charge of keeping track of the position and speed of encoder.
This script implements an algorithm that accounts for overflow and underflow in the encoder tick values. From this, the position, in degrees, and speed, in rpm, can be computed and sent back to the controller task. Other features are instantaneously getting the position, speed, and delta, as well as zeroing the encoder. See source code here: Encoder Driver Source Code