How does the onboard battery charger work? Does it charge the batteries when the motor is running? Or, does it come on while the motor is off and idle?