Encoder

constructor(@NonNull position: Supplier<Integer>, @NonNull velocity: Supplier<Double>)

The encoder object for some positional and velocity supplier.

Parameters

position

the position supplier which points to the current position of the encoder in ticks (obj::getCurrentPosition)

velocity

the velocity supplier which points to the current velocity the encoder in ticks per second (obj::getVelocity)