#589 WIP reboot recovery
This commit is contained in:
@@ -840,6 +840,12 @@ function unit.new(reactor_id, num_boilers, num_turbines, ext_idle)
|
||||
return false
|
||||
end
|
||||
|
||||
-- check the active state of the reactor (if connected)
|
||||
---@nodiscard
|
||||
function public.is_reactor_enabled()
|
||||
if self.plc_i ~= nil then return self.plc_i.get_status().status else return false end
|
||||
end
|
||||
|
||||
-- check if the reactor is connected, is stopped, the RPS is not tripped, and no alarms are active
|
||||
---@nodiscard
|
||||
function public.is_safe_idle()
|
||||
@@ -917,12 +923,6 @@ 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()
|
||||
|
||||
Reference in New Issue
Block a user