A system and a method for controlling torque of a motor are provided. The
method includes modifying a phase advance angle based on an identified
phase coil that has a faulted condition, a type of fault condition, and a
polarity of a commanded torque to obtain a desired output torque from a
motor.