Encoder

constructor(hMap: HardwareMap, id: String)

Constructs an encoder from the provided id of the corresponding motor.

Parameters

hMap

the hardware map from the OpMode

id

the device id from the RC config