#647 updated reactor PLC status indicator to also reflect coroutine health

This commit is contained in:
Mikayla Fischler
2025-11-15 17:23:36 -05:00
parent fb102502dd
commit 99742c621a
3 changed files with 34 additions and 11 deletions

View File

@@ -50,11 +50,11 @@ local function init(panel, config)
local system = Div{parent=panel,width=14,height=18,x=2,y=3}
local degraded = LED{parent=system,label="STATUS",colors=cpair(colors.red,colors.green)}
local sys_status = LED{parent=system,label="STATUS",colors=cpair(colors.red,colors.green)}
local heartbeat = LED{parent=system,label="HEARTBEAT",colors=ind_grn}
system.line_break()
degraded.register(databus.ps, "degraded", degraded.update)
sys_status.register(databus.ps, "status", sys_status.update)
heartbeat.register(databus.ps, "heartbeat", heartbeat.update)
local reactor = LEDPair{parent=system,label="REACTOR",off=colors.red,c1=colors.yellow,c2=colors.green}