At least one example embodiment discloses a control device for controlling an alternating current (ac) machine. The control device includes a processor configured to select a modulation mode from a plurality of modulation modes, determine a plurality of present phase voltages corresponding to phases of an inverter based on the selected modulation mode, the determination compensating for deadtimes associated with the selected modulation mode and phases of the inverter, the inverter configured to drive the ac machine and determine an estimated terminal voltage based on the plurality of present phase voltages.
展开▼