Patent ID: 7728557

Claim:
An electric discharge controller, comprising: an electrically operated machine having a rotor and a stator; an inverter for receiving a direct electric current supplied from a direct electric current source and generating an alternating electric current and supplying the alternating electric current to the electrically operated machine; a capacitor arranged between the direct electric current source and the inverter; voltage command value generation processing means for generating a voltage command value for driving the electrically operated machine; electric discharge control processing means for generating a voltage command value for electric discharge of a capacitor voltage; and driving signal generation processing means for generating a driving signal for operating the inverter on the basis of the voltage command value for driving while the direct electric current is supplied from the direct electric current source to the inverter, and for generating the driving signal on the basis of the voltage command value for electric discharge when a switch arranged between the direct electric current source and the inverter is turned off and the supply of the direct electric current is interrupted, and for supplying the driving signal to the inverter, wherein the electric discharge control processing means generates the voltage command value for electric discharge on the basis of a difference between a target direct current voltage that is a target value for electrically discharging the capacitor voltage to a voltage so as to not reduce durability even if short-circuit electric current flows in transistors of the inverter and a direct current voltage detected by a direct current voltage detecting section detecting the capacitor voltage.