senses a lobe or other projection of magnetic material mounted on the motive power shaft 18 alternatively any other component capable of producing the cycle pulse may be used advantageously the shaft pulse encoder may be simple in design and inexpensive the phase outputs developed by the pmg 12 and the output of the shaft pulse encoder 42 are supplied to a rotor position detector 44 which develops signals representing the position and speed of the motive power shaft 18 and delivers such signals to a speed controller 46 the speed controller 46 develops a torque command signal on a line 48 representing the commanded torque to be produced by the generator 10 and a further signal on a line 50 representing the mechanical position of the motive power shaft 18 the signal on the line 50 is multiplied by a multiplier 52 with a signal representing the number of pairs of poles of the main generator rotor and the resulting signal is summed with a phase advance signal by a summer 54 the phase advance signal is developed by a function generator 56 and is dependent upon the speed of the motive power shaft as detected by the rotor position detector 44 the function generator 56 provides increasing phase advance as speed increases in a high speed range the summer 54 develops an electrical angle.