mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#200 updated status info display fields
This commit is contained in:
parent
95b93eb795
commit
ff8ae5e609
@ -894,9 +894,7 @@ function iocontrol.record_unit_data(data)
|
|||||||
|
|
||||||
if tripped(unit.alarms[ALARM.ReactorDamage]) then
|
if tripped(unit.alarms[ALARM.ReactorDamage]) then
|
||||||
local items = {
|
local items = {
|
||||||
white("REACTOR DAMAGED"),
|
white("REACTOR DAMAGED"), blue("CHECK RCS"), blue("AWAIT DMG REDUCED")
|
||||||
blue("CHECK RCS"),
|
|
||||||
blue("AWAIT DMG REDUCED")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table.insert(ecam, { color = colors.red, text = "REACTOR DAMAGE", help = "ReactorDamage", items = items })
|
table.insert(ecam, { color = colors.red, text = "REACTOR DAMAGE", help = "ReactorDamage", items = items })
|
||||||
@ -904,9 +902,7 @@ function iocontrol.record_unit_data(data)
|
|||||||
|
|
||||||
if tripped(unit.alarms[ALARM.ReactorOverTemp]) then
|
if tripped(unit.alarms[ALARM.ReactorOverTemp]) then
|
||||||
local items = {
|
local items = {
|
||||||
white("HIT DAMAGING TEMP"),
|
white("DAMAGING TEMP"), blue("CHECK RCS"), blue("AWAIT COOLDOWN")
|
||||||
blue("CHECK RCS"),
|
|
||||||
blue("AWAIT COOLDOWN")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table.insert(ecam, { color = colors.red, text = "REACTOR OVER TEMP", help = "ReactorOverTemp", items = items })
|
table.insert(ecam, { color = colors.red, text = "REACTOR OVER TEMP", help = "ReactorOverTemp", items = items })
|
||||||
@ -918,7 +914,7 @@ function iocontrol.record_unit_data(data)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if tripped(unit.alarms[ALARM.ReactorWasteLeak]) then
|
if tripped(unit.alarms[ALARM.ReactorWasteLeak]) then
|
||||||
local items = { white("AT WASTE CAPACITY"), blue("CHECK WASTE OUTPUT"), red("DO NOT ENABLE RCT") }
|
local items = { white("AT WASTE CAPACITY"), blue("CHECK WASTE OUTPUT"), blue("KEEP RCT DISABLED") }
|
||||||
|
|
||||||
table.insert(ecam, { color = colors.red, text = "REACTOR WASTE LEAK", help = "ReactorWasteLeak", items = items})
|
table.insert(ecam, { color = colors.red, text = "REACTOR WASTE LEAK", help = "ReactorWasteLeak", items = items})
|
||||||
end
|
end
|
||||||
@ -934,7 +930,7 @@ function iocontrol.record_unit_data(data)
|
|||||||
|
|
||||||
local function insert(cond, key, text, color) if cond[key] then table.insert(items, { text = text, help = key, color = color }) end end
|
local function insert(cond, key, text, color) if cond[key] then table.insert(items, { text = text, help = key, color = color }) end end
|
||||||
|
|
||||||
table.insert(items, { text = "REACTOR SCRAMMED", color = colors.white })
|
table.insert(items, white("REACTOR SCRAMMED"))
|
||||||
insert(stat, "high_dmg", "HIGH DAMAGE", colors.red)
|
insert(stat, "high_dmg", "HIGH DAMAGE", colors.red)
|
||||||
insert(stat, "high_temp", "HIGH TEMPERATURE", colors.red)
|
insert(stat, "high_temp", "HIGH TEMPERATURE", colors.red)
|
||||||
insert(stat, "low_cool", "CRIT LOW COOLANT")
|
insert(stat, "low_cool", "CRIT LOW COOLANT")
|
||||||
@ -947,6 +943,8 @@ function iocontrol.record_unit_data(data)
|
|||||||
insert(stat, "automatic", "AUTOMATIC SCRAM")
|
insert(stat, "automatic", "AUTOMATIC SCRAM")
|
||||||
insert(stat, "sys_fail", "NOT FORMED", colors.red)
|
insert(stat, "sys_fail", "NOT FORMED", colors.red)
|
||||||
insert(stat, "force_dis", "FORCE DISABLED", colors.red)
|
insert(stat, "force_dis", "FORCE DISABLED", colors.red)
|
||||||
|
table.insert(items, blue("RESOLVE PROBLEM"))
|
||||||
|
table.insert(items, blue("RESET RPS"))
|
||||||
|
|
||||||
table.insert(ecam, { color = colors.yellow, text = "RPS TRANSIENT", help = "RPSTransient", items = items})
|
table.insert(ecam, { color = colors.yellow, text = "RPS TRANSIENT", help = "RPSTransient", items = items})
|
||||||
end
|
end
|
||||||
@ -959,6 +957,8 @@ function iocontrol.record_unit_data(data)
|
|||||||
if cond == true or (type(cond) == "table" and cond[key]) then table.insert(items, { text = text, help = key, color = color }) end
|
if cond == true or (type(cond) == "table" and cond[key]) then table.insert(items, { text = text, help = key, color = color }) end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.insert(items, white("COOLANT PROBLEM"))
|
||||||
|
|
||||||
insert(annunc, "RCPTrip", "RCP TRIP", colors.red)
|
insert(annunc, "RCPTrip", "RCP TRIP", colors.red)
|
||||||
insert(annunc, "CoolantLevelLow", "LOW COOLANT")
|
insert(annunc, "CoolantLevelLow", "LOW COOLANT")
|
||||||
|
|
||||||
@ -986,10 +986,8 @@ function iocontrol.record_unit_data(data)
|
|||||||
|
|
||||||
insert(annunc, "MaxWaterReturnFeed", "MAX WTR RTRN FEED")
|
insert(annunc, "MaxWaterReturnFeed", "MAX WTR RTRN FEED")
|
||||||
|
|
||||||
for k, v in ipairs(annunc.WaterLevelLow) do insert(v, "WaterLevelLow", "BOILER " .. k .. " WTR LOW", colors.red) end
|
|
||||||
for k, v in ipairs(annunc.HeatingRateLow) do insert(v, "HeatingRateLow", "BOILER " .. k .. " HEAT RATE") end
|
table.insert(items, blue("CHECK COOLING SYS"))
|
||||||
for k, v in ipairs(annunc.TurbineOverSpeed) do insert(v, "TurbineOverSpeed", "TURBINE " .. k .. " OVERSPD", colors.red) end
|
|
||||||
for k, v in ipairs(annunc.GeneratorTrip) do insert(v, "GeneratorTrip", "TURBINE " .. k .. " GEN TRIP") end
|
|
||||||
|
|
||||||
table.insert(ecam, { color = colors.yellow, text = "RCS TRANSIENT", help = "RCSTransient", items = items})
|
table.insert(ecam, { color = colors.yellow, text = "RCS TRANSIENT", help = "RCSTransient", items = items})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user