This commit is contained in:
Jonas Bengtsson
2026-10-07 07:40:56 +02:00
parent c8b655111e
commit 9f3272094e
17 changed files with 2243 additions and 89 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class PumpStationEnv(PlantEnv):
def model(self, state: PlantState, dt_s: float) -> dict[str, object]:
dt_h = dt_s / 3600.0
# what the PLC currently commands (master side: DO/AO)
pump_running = bool(state.by_code("DI0.0"))
pump_running = bool(state.by_code("DO0.0"))
# speed setpoint from AO0.0, normalized over its display range
ao_lo, ao_hi = state.channel_range("AO0.0")