Patent attributes
A vehicle includes: at least one rotary electric machine; an inverter that drives the rotary electric machine; a capacitor connected between a paired electric power lines that is connected to the inverter; and a control unit. When a vehicle collision is detected, the control unit executes first control for discharging electric charges stored in the capacitor by performing a switching operation of the inverter so as to prevent a flow of a q-axis current but cause a flow of a d-axis current to the rotary electric machine. The control unit stops the first control in a specified case and executes second control for performing the switching operation of the inverter so as to reduce the current flowing through the rotary electric machine to be lower than that during execution of the first control. The control unit executes third control for shutting down the inverter after execution of the second control.