A system, for generating a signal to control the rotation of a shaft supporting an antenna so that the antenna is rotated the shortest angular distance from a present angular position to a new desired angular position, was described. The system comprises a shaft encoder which generates a digital encoder signal indicating the present position of the shaft. A command signal is compared with the encoder signal to produce an analog signal for rotating the antenna. An error signal is produced for controlling the direction of rotation of the antenna