Abstract: An apparatus for compensating for turn on delay distortions generated by a PWM controller. When turn on delay compensation is added to a PWM controller command signal and current zero crossings are inaccurately determined, compensation at the zero crossings causes further distortion which is reflected in a d and q-axis current vector frequency. Deviations from an ideal vector frequency are identified and used to modify command voltages to eliminate the zero crossing errors.