Dynamic control of spindle motors for milling applications