Patent attributes
A control device for an electric motor includes an inverter circuit; and a control circuit that finds a voltage command value such that the d-axis current and the q-axis current approach a d-axis current command value and a q-axis current command value, and turns the plurality of switching elements on and off by using a drive signal in accordance with a result of comparison between the voltage command value and a carrier wave. The control circuit corrects the voltage command value by using a polarity of the alternating current during dead time, and causes the d-axis current command value in a certain length of time before and after the alternating current reaches zero to be greater than the d-axis current command value in a length of time other than the certain length of time.