Deadwheel

constructor(motor: DcMotor, clock: NanoClock)

Constructs a new Encoder instance.

Parameters

motor

the motor to wrap

clock

the clock to use


constructor(motor: DcMotor)

Constructs a new Encoder instance.

Parameters

motor

the motor to wrap