Encoder

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

The encoder object for the motor.

Parameters

position

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

velocity

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