This is one of the big confusions i have. When rotor magnetic field is 90 degrees with respect to stator magnetic field we get maximum torque. In field oriented control the a, b, c axis is converted to d and q axis. So making d axis to 0 and q axis to torque and running through pi loop does automatically the 90 angle differnce? Please help.