A system and method for reducing torque ripple in a motor controller includes
a
step (60) of measuring an output voltage at each phase of the motor controller.
A next step (61) includes determining a voltage mismatch between the phases.
A next step (62) includes phase grounding one phase of the motor. A next
step (63) includes calculating a voltage gain for the phases to compensate
for voltage mismatches therebetween. The compensating gain can include a gain and/or
offset, which are applied as a function of motor angle and is used to generate
a PWM signal for driving the motor with reduced torque ripple.