reset Encoder
Reset the encoder value back to 0 by commanding the firmware to reset the encoder count. Will internally be called if the motor is attempted to be set to STOP_AND_RESET_ENCODER. The target position will also be reset to 0. Power will attempt to be restored across this reset.
The previous (true) operating mode, RUN_WITHOUT_ENCODER
, of the motor will be restored after this operation.
Note: Pre-BunyipsLib 7.3.0, this method did not reset the actual encoder on the motor object, causing OpMode restarts or changes to report the motor position at the original, not reset value.