coordinator handle SPS low power ack
This commit is contained in:
parent
f56d68d972
commit
35134822a9
@ -592,7 +592,7 @@ function coordinator.comms(version, nic, sv_watchdog)
|
|||||||
elseif cmd == FAC_COMMAND.SET_PU_FB then
|
elseif cmd == FAC_COMMAND.SET_PU_FB then
|
||||||
process.pu_fb_ack_handle(packet.data[2])
|
process.pu_fb_ack_handle(packet.data[2])
|
||||||
elseif cmd == FAC_COMMAND.SET_SPS_LP then
|
elseif cmd == FAC_COMMAND.SET_SPS_LP then
|
||||||
---@todo
|
process.sps_lp_ack_handle(packet.data[2])
|
||||||
else
|
else
|
||||||
log.debug(util.c("received facility command ack with unknown command ", cmd))
|
log.debug(util.c("received facility command ack with unknown command ", cmd))
|
||||||
end
|
end
|
||||||
|
|||||||
@ -485,18 +485,25 @@ function process.start_ack_handle(response)
|
|||||||
pctl.io.facility.start_ack(ack)
|
pctl.io.facility.start_ack(ack)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- record waste product state after attempting to change it
|
-- record waste product settting after attempting to change it
|
||||||
---@param response WASTE_PRODUCT supervisor waste product state
|
---@param response WASTE_PRODUCT supervisor waste product settting
|
||||||
function process.waste_ack_handle(response)
|
function process.waste_ack_handle(response)
|
||||||
pctl.control_states.process.waste_product = response
|
pctl.control_states.process.waste_product = response
|
||||||
pctl.io.facility.ps.publish("process_waste_product", response)
|
pctl.io.facility.ps.publish("process_waste_product", response)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- record plutonium fallback state after attempting to change it
|
-- record plutonium fallback settting after attempting to change it
|
||||||
---@param response boolean supervisor plutonium fallback state
|
---@param response boolean supervisor plutonium fallback settting
|
||||||
function process.pu_fb_ack_handle(response)
|
function process.pu_fb_ack_handle(response)
|
||||||
pctl.control_states.process.pu_fallback = response
|
pctl.control_states.process.pu_fallback = response
|
||||||
pctl.io.facility.ps.publish("process_pu_fallback", response)
|
pctl.io.facility.ps.publish("process_pu_fallback", response)
|
||||||
end
|
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
|
return process
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user