Clarify generator control and turbine status

This commit is contained in:
Codex Agent
2025-11-22 22:57:31 +01:00
parent c30c838fcc
commit fb1276f39f
2 changed files with 5 additions and 2 deletions

View File

@@ -394,7 +394,6 @@ class ReactorDashboard:
"Turbine / Grid",
[
("Turbines", " ".join(self._turbine_status_lines())),
("Turbine Ctrl", "MANUAL"),
("Unit1 Elec", f"{state.turbines[0].electrical_output_mw:7.1f} MW" if state.turbines else "n/a"),
(
"Unit2 Elec",
@@ -544,6 +543,8 @@ class ReactorDashboard:
if not state.generators:
return [("Status", "n/a")]
lines: list[tuple[str, str]] = []
control = "AUTO" if self.reactor.generator_auto else "MANUAL"
lines.append(("Control", control))
for idx, gen in enumerate(state.generators):
status = "RUN" if gen.running else "START" if gen.starting else "OFF"
spool = f" spool {gen.spool_remaining:4.1f}s" if gen.starting else ""