Block for a battery controller. The battery is charged during night if its charge is below a threshold. It remains charging until it is full. During day, it discharges provided that its charge is above a threshold. It remains discharging until it is empty.
off
to avoid
an overdetermined system of equations during initialization.Modelica_StateGraph2
with Modelica.StateGraph
.
This is for issue 504.