How to implement an encoder with one speed clock, and one direction signal.
The encoder we are attempting to implement is not a quadrature encoder.
We are trying to use the Counter.h class in the WPILib to implement it.
When we used the Get() method in the Counter class, it returned a one or two, based on if we were using a k1X or a k2X reading.
When we used the GetDirection() method it returned a true, or false based on what direction the encoder is spinning.
We can't get the encoder to count past one or two. Any help appreciated.
|