refreshes the encoders and allowed for the motors to track its position accurately destroying the chain from moving the motors in opposite direction . concode_field_sep Preferences presets concode_elem_sep DcMotor rightMotor concode_elem_sep DcMotor leftMotor concode_field_sep double calculateEncoderValue concode_elem_sep void stopAllMotors concode_elem_sep boolean encodersReset concode_elem_sep boolean runningWithoutEncoders concode_elem_sep void init concode_elem_sep DcMotor getRightMotor concode_elem_sep boolean runningWithEncoders concode_elem_sep void runWithEncoders concode_elem_sep void setRightPower concode_elem_sep void setRightMotor concode_elem_sep void refreshEncoders concode_elem_sep void setLeftMotor concode_elem_sep DcMotor getLeftMotor concode_elem_sep boolean robotReachedTargetDistance concode_elem_sep void runWithoutEncoders concode_elem_sep void setLeftPower
void function ( ) { getRightMotor ( ) . setMode ( DcMotorController . RunMode . RESET_ENCODERS ) ; getLeftMotor ( ) . setMode ( DcMotorController . RunMode . RESET_ENCODERS ) ; }