Quote:
Originally Posted by saikiranra
So in theory, is it possible to use the WPI Encoder Libraries with an optical sensor and a piece of reflective tape?
|
The FPGA encoder support requires a pair of sensors in order to give a quadrature signal. In one direction of motion, A goes high, then B goes high, then A goes low, then B goes low. In the other direction, B goes high, then A goes high, then B goes low, then A goes low. If you can arrange your sensors and marks so that's what you get, the WPI library encoder functions should work.
But the counter functions should work just fine with a single sensor.