feat: improve manual rod control and reactor power

This commit is contained in:
Andrii Prokhorov
2025-11-21 17:59:25 +02:00
parent 6e8520c925
commit 2400ce669e
6 changed files with 33 additions and 15 deletions

View File

@@ -182,7 +182,10 @@ class Reactor:
self._set_turbine_state(False)
if command.power_setpoint is not None:
self.control.set_power_setpoint(command.power_setpoint)
if command.rod_manual is not None:
self.control.set_manual_mode(command.rod_manual)
if command.rod_position is not None:
self.control.set_manual_mode(True)
overrides["rod_fraction"] = self.control.set_rods(command.rod_position)
self.shutdown = self.shutdown or command.rod_position >= 0.95
elif command.rod_step is not None: