by means of controlling devices between the generator output and the battery