encoder
The encoder object that is used for position and velocity readings on this motor.
To reverse the directionality of the encoder, but not the output power, you can access this object and call the setDirection
method on it. Updating the general direction of the motor will update both.
This encoder object is mutable. Reassigning this object will use a different Encoder instance to regulate all encoder operations. Use with caution.