Emergency Power
Turns on the coal generator when the batteries are low and recharges them to a certain percentage.
Screw d0 must be set to the generator and screw d1 to the battery.
You can adjust MIN_BATTCHARGE and MAX_BATTCHARGE to set when the generator should start and when it should shut down again.