The output from the generator varies with rpm and drives the motor.