active-backup supervisor setups are no longer planned

This commit is contained in:
Mikayla Fischler
2022-04-22 11:15:16 -04:00
parent 1bf0d352a1
commit 6daf6df2d0
5 changed files with 7 additions and 47 deletions

View File

@@ -39,15 +39,8 @@ if modem == nil then
return
end
-- determine active/backup mode
local mode = comms.SCADA_SV_MODES.BACKUP
if config.SYSTEM_TYPE == "active" then
mode = comms.SCADA_SV_MODES.ACTIVE
end
-- start comms, open all channels
local comms = supervisor.superv_comms(config.NUM_REACTORS, modem, config.SCADA_DEV_LISTEN, config.SCADA_FO_LOCAL, config.SCADA_FO_PEER,
config.SCADA_SV_CHANNEL)
local comms = supervisor.superv_comms(config.NUM_REACTORS, modem, config.SCADA_DEV_LISTEN, config.SCADA_SV_LISTEN)
-- base loop clock (4Hz, 5 ticks)
local loop_clock = os.startTimer(0.25)
@@ -96,7 +89,6 @@ while true do
-- check for termination request
if event == "terminate" or ppm.should_terminate() then
log._warning("terminate requested, exiting...")
-- @todo: attempt failover, alert hot backup
break
end
end