The controller for a brushless motor controls motor current by executing
updates of applied voltage to a coil in accordance with rotational
position of a rotor, the target current, and the actual current flowing
through the coil. The updates of applied voltage to the coil are executed
according to the results of calculations of applied voltage to the coil
in accordance with the rotational position of the rotor, the target
current, and the actual current flowing through the coil, in order to
generate power for rotating the rotor by varying magnetic field generated
by the coil. The cycle time of the updates of applied voltage is shorter
than the cycle time of the calculations of applied voltage corresponding
to the rotational position of the rotor.