feedback,
And the magnets will vary in strength over temperature.
I understand that there are also PWM driver circuits that read the motor voltage when the driver amp is high impedance, basically using the motor as a tachometer. This doesn't solve the magnet's variance with temperature, but that's not a big issue normally.
I haven't tried it, but someday...