Flux-Weakening Control of Surface Mounted PM Synchronous Motors Accounting for Resistive Voltage Drop