Public Member Functions | |
| Encoder (int base, int pulses) | |
| Initializes Encoder, clears the counter on the quadrature decoder chip. | |
| native void | finalize () |
| Finalizes Encoder. | |
| double | read () |
| Reads the counter on the quadrature decoder chip and converts the motion to radians. | |
| double | readAndClear () |
| Reads the counter on the quadrature decoder chip, converts the motion to radians and clears the counter. | |
Static Public Member Functions | |
| native void | clear () |
| Clears the counter on the quadrature decoder chip. | |
| native int | getCount () |
| Gets the count on the quadrature decoder chip. | |
| native int | getCountAndClear () |
| Gets the count and clears the counter on the quadrature decoder chip. | |
Public Attributes | |
| final int | PULSES |
| Number of pulses per revolution of the encoder, considering the quadrature decoder. | |
|
||||||||||||
|
Initializes Encoder, clears the counter on the quadrature decoder chip.
|
|
|
Gets the count on the quadrature decoder chip.
|
|
|
Gets the count and clears the counter on the quadrature decoder chip.
|
|
|
Reads the counter on the quadrature decoder chip and converts the motion to radians.
|
|
|
Reads the counter on the quadrature decoder chip, converts the motion to radians and clears the counter.
|
1.3.6