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.