Regulation of the charging current or voltage by variation of field using armature-reaction-excited machines