After my last electronic design, I managed to sell some of my electronic cards. I spent some of my money for my education and decided to start another project for the rest. my new project is to produce pmsm motor control circuit which includes foc control algorithm.

I am in the research stage especially about this subject and although I have researched a subject, I could not find the answer I was looking for. I am waiting for your support.

First of all, I do not have a problem with the tree diagram of the control algorithm. The part I had difficulty in understanding was that I could not understand that current input was provided to the pi regulator input and that the output contains voltage information.

Since my system contains pi control, I can easily find formulas with proportional and integral. I have no idea how to determine some constants (kp, ki etc.). How can I get the regulator output vq and vd voltages? How can I determine the proportional constants (kp, ki etc.)?

Please let me know if the information I have specified is missing. I am ready to read all your comments. thank you.