#589 initial attempt at reboot recovery

This commit is contained in:
Mikayla
2025-02-08 20:35:04 +00:00
parent cbc84c5998
commit b3cf40a01a
10 changed files with 266 additions and 84 deletions

View File

@@ -917,6 +917,12 @@ function unit.new(reactor_id, num_boilers, num_turbines, ext_idle)
return status
end
-- check the commanded control state of the reactor (if connected)
---@nodiscard
function public.get_control_state()
if self.plc_i ~= nil then return self.plc_i.get_db().control_state else return false end
end
-- get the current burn rate (actual rate)
---@nodiscard
function public.get_burn_rate()