Abstract:
A system includes a pulse-width modulation (PWM) module, a subtraction module, an error reducing module, and a summing module. The PWM module controls switching of an inverter that powers a motor. The PWM module controls the switching based on a first angle in a first mode and a second angle in a second mode. The subtraction module determines a difference between the first and second angles. The error reducing module (i) stores the difference when a transition from the first mode to the second mode is commanded and (ii) decreases a magnitude of the stored difference to zero. The summing module calculates a sum of the stored difference and the second angle. The PWM module controls the switching based on the sum in the second mode.