Constructs an encoder from the provided id of the corresponding motor.
the hardware map from the OpMode
the device id from the RC config