#78 functional reactor stats on main view

This commit is contained in:
Mikayla Fischler 2022-09-05 19:40:20 -04:00
parent 397e311f1b
commit 117784500a
2 changed files with 10 additions and 2 deletions

View File

@ -153,10 +153,18 @@ function database.update_statuses(statuses)
end end
for key, val in pairs(unit.reactor_data) do for key, val in pairs(unit.reactor_data) do
if key ~= "mek_struct" then if key ~= "rps_status" and key ~= "mek_struct" and key ~= "mek_status" then
unit.reactor_ps.publish(key, val) unit.reactor_ps.publish(key, val)
end end
end end
for key, val in pairs(unit.reactor_data.rps_status) do
unit.reactor_ps.publish(key, val)
end
for key, val in pairs(unit.reactor_data.mek_status) do
unit.reactor_ps.publish(key, val)
end
end end
-- RTU statuses -- RTU statuses

View File

@ -16,7 +16,7 @@ local config = require("coordinator.config")
local coordinator = require("coordinator.coordinator") local coordinator = require("coordinator.coordinator")
local renderer = require("coordinator.renderer") local renderer = require("coordinator.renderer")
local COORDINATOR_VERSION = "alpha-v0.4.4" local COORDINATOR_VERSION = "alpha-v0.4.5"
local print = util.print local print = util.print
local println = util.println local println = util.println