Sensored foc pmsm. There is a function which is used for updating the PWM.