Patent ID: 7813089

Claim:
A motor controller comprising: a motor control signal output section that outputs a motor control signal; and a driver circuit that supplies a three phase drive power to a motor based on the motor control signal provided by the motor control signal output section, wherein the motor control signal output section includes: an electric current command value calculating section that calculates an electric current command value corresponding to a required torque to be generated by the motor; a motor control signal generating section that generates the motor control signal by performing a feedback control on an electric current in such a manner as to produce a motor electric current corresponding to the electric current command value obtained by the electric current command value calculating section; and an anomaly detecting section that detects a failed electric current flow in any one of phases of the motor, wherein, if the anomaly detecting section detects a failed electric current flow in any phase of the motor, the motor control signal output section generates, based on a phase other than the phase with the failed electric current flow, the motor control signal in such a manner that the motor electric current matches the required torque except for at a specific rotation angle corresponding to the phase with the failed electric current flow.