Patent attributes
A motor controller for controlling a motor includes first and second angle sensors detecting motor rotation, and first and second detection circuits detecting rotation number information based on sensor output from the angle sensors. Further, the motor controller includes a steer angle information obtainer obtaining steer angle information involving steering of a vehicle from an external sensor, which is different from the angle sensors, and an abnormality determiner determining abnormality of information that has a matching degree of lower than a preset value when post-conversion information, or value measured by the same characteristics. This information is compared with each other after conversion from the rotation number information and from the steer angle information, and is used by a control amount calculator to calculate a control amount of the motor based on the information determined as having no abnormality by the abnormality determiner.