diff --git a/coordinator/coordinator.lua b/coordinator/coordinator.lua index baca753..bb8bcee 100644 --- a/coordinator/coordinator.lua +++ b/coordinator/coordinator.lua @@ -592,7 +592,7 @@ function coordinator.comms(version, nic, sv_watchdog) elseif cmd == FAC_COMMAND.SET_PU_FB then process.pu_fb_ack_handle(packet.data[2]) elseif cmd == FAC_COMMAND.SET_SPS_LP then - ---@todo + process.sps_lp_ack_handle(packet.data[2]) else log.debug(util.c("received facility command ack with unknown command ", cmd)) end diff --git a/coordinator/process.lua b/coordinator/process.lua index abb1bc2..5f7f010 100644 --- a/coordinator/process.lua +++ b/coordinator/process.lua @@ -485,18 +485,25 @@ function process.start_ack_handle(response) pctl.io.facility.start_ack(ack) end --- record waste product state after attempting to change it ----@param response WASTE_PRODUCT supervisor waste product state +-- record waste product settting after attempting to change it +---@param response WASTE_PRODUCT supervisor waste product settting function process.waste_ack_handle(response) pctl.control_states.process.waste_product = response pctl.io.facility.ps.publish("process_waste_product", response) end --- record plutonium fallback state after attempting to change it ----@param response boolean supervisor plutonium fallback state +-- record plutonium fallback settting after attempting to change it +---@param response boolean supervisor plutonium fallback settting function process.pu_fb_ack_handle(response) pctl.control_states.process.pu_fallback = response pctl.io.facility.ps.publish("process_pu_fallback", response) end +-- record SPS low power settting after attempting to change it +---@param response boolean supervisor SPS low power settting +function process.sps_lp_ack_handle(response) + pctl.control_states.process.sps_low_power = response + pctl.io.facility.ps.publish("process_sps_low_power", response) +end + return process