wpilib.interfaces.CounterBase) → None¶
Interface for counting the number of ticks on a digital input channel.
Encoders, Gear tooth sensors, and counters should all subclass this so it can be used to build more advanced classes for control and driving.
All counters will immediately start counting - Reset() them if you need them to be zeroed before use.
EncodingType(self: wpilib.interfaces._interfaces.CounterBase.EncodingType, value: int) → None¶
k1X= <EncodingType.k1X: 0>¶
k2X= <EncodingType.k2X: 1>¶
k4X= <EncodingType.k4X: 2>¶