Patent ID: 8855858

Claim:
A motor control unit that controls a motor that includes a rotor and a stator that faces the rotor, comprising: at least one processor; at least one non transitory computer-readable storage medium, the at least one non transitory computer-readable storage medium storing instructions that when executed cause the at least one processor to perform as: a current drive unit that drives the motor based on 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 and calculated without using a rotational angle sensor that detects a rotation angle of the rotor so that the control angle is determined independently from the rotation angle of the rotor; an addition angle calculation unit that calculates, without detecting a change of the rotation angle of the rotor, an addition angle that is to be added to the control angle; a control angle calculation unit that obtains a present value of the control angle by adding the addition angle calculated by the addition angle calculation unit to an immediately preceding value of the control angle in predetermined calculation cycles; a control torque calculation unit that calculates a control torque based on a torque that is other than a motor torque and that is applied to a drive target that is driven by the motor; and a command torque setting unit that sets a command torque that is a torque that is other than the motor torque and that is to be applied to the drive target, wherein the addition angle calculation unit calculates the addition angle based on a deviation of the control torque calculated by the control torque calculation unit from the command torque set by the command torque setting unit, wherein when an absolute value of a torque other than the motor torque is equal to or smaller than a first predetermined value, the control torque calculation unit sets the control torque to 0, wherein in a case where a torque other than the motor torque, which is input in the control torque calculation unit, is expressed by T L , the first predetermined value is expressed by X, and a second predetermined value that is larger than the first predetermined value is expressed by Y, the control torque calculation unit calculates the control torque such that, when X<T L <Y or −Y<T L <−X, an absolute value of the control torque linearly and smoothly increases from a value near 0 as the absolute value of the torque other than the motor torque increases, and wherein when X<T L <Y, the control torque calculation unit calculates the control torque according to an equation, T={Y/(Y −X)}×T L −{XY/(Y−X)},and when −Y<T L <−X, the control torque calculation unit calculates the control torque according to an equation, T={Y/(Y−X)}×T L +{XY/(Y−X)}.