Question about encoder

Hi, what is the largest reading of the gopigo encoder, and how to reset the number to zero? And does encoder has the ability to read properly when the speed reach 10000RPM?
Looking forward to your respond.

Hi yuangao,
The max value that an encoder can read is 65535. I don;t think the encoder will read properly at 10000RPM (There will be too many interrupts generated at this speed for the firmware to work normally). The motor is also not capable of running at those speeds.