An object of the present invention is to provide a controller for an
electric four-wheel-drive vehicle, which is capable of minimizing torque
changes and consuming excessive power even when the excessive power is
generated by a generator. A motor control unit causes an AC motor to
generate desired torque by controlling an inverter. When the power
generated by the generator exceeds the power consumed by the inverter and
AC motor to generate excessive power, a current command determination
unit in the motor control unit consumes the excessive power by increasing
a loss in the AC motor.