Patent ID: 8789643

Claim:
A motor control apparatus comprising: an electric motor that moves a control object equipped to a vehicle at least between two positions; a homing control section, using a processor, that executes a homing control for controlling the electric motor to move the control object so that the control object press-contacts a shift parking position stopper wall when at least one of a plurality of initialization conditions is satisfied; a distance determination section, using the processor, that determines whether a user of the vehicle is apart from the vehicle at a distance greater than a predetermined distance; and a forbiddance section, using the processor, that forbids the homing control section to execute the homing control again during a period, which starts at a time when the homing control is executed and ends at a time when the distance determination section determines that the user of the vehicle is apart from the vehicle at the distance greater than the predetermined distance, even when the at least one of the initialization conditions is satisfied during the period.