Patent ID: 8841873

Claim:
A motor control device for a vehicle, comprising: a first torque generation unit for generating a first torque command value for controlling drive of the motor for traveling according to a state quantity of the vehicle supplied from at least one type of sensor provided on the vehicle; a second torque generation unit for extracting a frequency component generating a resonance of the vehicle which is one of frequency components of an oscillation source of the vehicle generated when the motor for traveling is driven, and generating a second torque command value serving as a resonance compensation value for the first torque command value based on the extracted frequency component; and a drive torque generation unit for subtracting the second torque command value generated by the second torque generation unit from the first torque command value generated by the first torque generation unit, thereby outputting a result of the subtraction as a drive torque command value for the motor for traveling, wherein the motor for traveling is driven based on the drive torque command value, and wherein the second torque generation unit includes a vehicle speed input unit for receiving an input of a speed of the vehicle, and the second torque generation unit switches an operation for generating the second torque command value on and off according to the speed of the vehicle.