Voltage regulation of alternators