摘要 |
A motor control unit controls a motor including a rotor and a stator facing the rotor. A current drive unit drives the motor at an axis current value of a rotating coordinate system that rotates in accordance with a control angle that is a rotational angle used in a control. An addition angle calculation unit calculates an addition angle to be added to the control angle. A control angle calculation unit obtains, at every predetermined calculation cycle, a present value of the control angle by adding the addition angle that is calculated by the addition angle calculation unit to an immediately preceding value of the control angle. A torque detection unit detects a torque that is other than a motor torque and that is applied to a drive target driven by the motor. A command torque setting unit sets a command torque to be applied to the drive target. An addition angle correction unit compares the command torque set by the command torque setting unit with the detected torque detected by the torque detection unit, and corrects the addition angle based on a comparison result.
|