Patent attributes
A control device includes a limit value calculation unit that, when a rotary electric machine is driven as an electric motor, subtracts a power consumption value from a discharge power limit value of a power storage device to calculate an input limit value, and a control unit that, when the rotary electric machine is driven as an electric motor, controls the inverter so that a power consumption value of the rotary electric machine is equal to or less than the input limit value. In response to an abnormality occurring wherein a normal power consumption value cannot be achieved when the rotary electric machine is driven as an electric motor, the limit value calculation unit sets the power consumption value of the electrical device for calculating the input limit value on an upper limit side of a range in which the power consumption value takes when the electrical device is driven.