Your question is Electric Motor Control and Implementation. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Describe the block diagram of FOC, draw and explain MTPA, FW, and MTPF curves for IPMSM, and explain space vector modulation and how you implement it on microcontrollers.