Hi,
Please check the following application note that describes the parameters calculation of the PI controller in section 6.4.2. ξ is the speed loop attenuation and ω is the natural frequency of the closed loop system.
https://www.nxp.com/docs/en/application-note/AN4642.pdf
Best regards,
Felipe