摘要 |
<p>Provided is a motor control device capable of suppressing an abrupt change in current offset value, to hold stable steering feeling. A detected current value of a drift current detected in a state where a motor current is regarded as zero is set as a current offset value, and in a motor control device for compensating a detected current value of the motor current by means of the current offset value, a drift current is detected with respect to each predetermined cycle T, and a target offset value is set with respect to each cycle T based on the thus-detected detected current value of the drift current. A correction value K is added to the current offset value when the current offset value is smaller than the target offset value, and the correction value K is subtracted from the current offset value when the current offset value is larger than the target offset value, thereby to correct the current offset value with respect to each cycle T.</p> |