Patent ID: 7173392

Claim:
A switching controller comprising: a detent device that includes a first member and a second member, which are movable relative to each other, the second member being applied with bias force to mechanically engage with the first member at one of a plurality of detent positions defining relative positions between the first member and the second member; an electric actuator that includes an electric motor having a rotor, a reduction gear, and an output shaft, the electric motor rotating the rotor when being supplied with electricity, the reduction gear reducing rotation of the rotor and transmitting the rotation to the output shaft manipulating the first member; a main controller that controls the electric motor to switch the one of the plurality of detent positions; a rotor angle detecting unit that detects rotor angle of the rotor; and an output angle detecting unit that detects output angle of the output shaft, wherein the main controller includes a backlash calculating unit that calculates a backlash amount between the rotor and the first member in accordance with at least one of occurrence of a first region, in which change in the output angle is small with respect to change in the rotor angle, and a range of the rotor angle in the first region, and the main controller incorporates the backlash amount into the control of the electric motor.