Grove Motor Driver TB6612FNG

I hate magic numbers.

I’m trying to port the driver software to Python and buried in the cpp file is a magic number:

ms_per_step = (uint16_t)(3000.0 / (float)rpm);

I have no idea what this 3000.0 means but through trial and error, I figured out I need to change it to 7000.0 to get my stepper motor working correctly .

Anyone know what this magic number is supposed to be.