This video covers the design of a field-oriented control regime for a PMSM. The video covers how to determine the PI controller for Id, Iq, and speed. A methodology using PSIM and SmartCtrl is presented with a stable solution as the result.
https://www.youtube.com/watch?v=2sExOzUxqxE