diagnostic disables

This commit is contained in:
Mikayla 2024-12-10 04:17:30 +00:00
parent e54ecf43ed
commit 49b545ba2c
6 changed files with 8 additions and 0 deletions

View File

@ -224,6 +224,7 @@ function iocontrol.init(conf, comms, temp_scale, energy_scale)
ALARM_STATE.INACTIVE -- turbine trip ALARM_STATE.INACTIVE -- turbine trip
}, },
---@diagnostic disable-next-line: missing-fields
annunciator = {}, ---@type annunciator annunciator = {}, ---@type annunciator
unit_ps = psil.create(), unit_ps = psil.create(),
@ -366,6 +367,7 @@ local function _record_multiblock_build(id, entry, data_tbl, ps_tbl, create)
if exists or create then if exists or create then
if not exists then if not exists then
ps_tbl[id] = psil.create() ps_tbl[id] = psil.create()
---@diagnostic disable-next-line: missing-fields
data_tbl[id] = {} data_tbl[id] = {}
end end
@ -1085,6 +1087,7 @@ function iocontrol.update_unit_statuses(statuses)
unit.annunciator = status[3] unit.annunciator = status[3]
if type(unit.annunciator) ~= "table" then if type(unit.annunciator) ~= "table" then
---@diagnostic disable-next-line: missing-fields
unit.annunciator = {} unit.annunciator = {}
log.debug(log_header .. "annunciator state not a table") log.debug(log_header .. "annunciator state not a table")
valid = false valid = false

View File

@ -286,6 +286,7 @@ function process.create_handle()
handle.unit_ack = {} handle.unit_ack = {}
for u = 1, pctl.io.facility.num_units do for u = 1, pctl.io.facility.num_units do
---@diagnostic disable-next-line: missing-fields
handle.unit_ack[u] = {} handle.unit_ack[u] = {}
---@class process_unit_ack ---@class process_unit_ack

View File

@ -241,6 +241,7 @@ function iocontrol.init_fac(conf)
---@type { [ALARM]: ALARM_STATE } ---@type { [ALARM]: ALARM_STATE }
alarms = { ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE }, alarms = { ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE, ALARM_STATE.INACTIVE },
---@diagnostic disable-next-line: missing-fields
annunciator = {}, ---@type annunciator annunciator = {}, ---@type annunciator
unit_ps = psil.create(), unit_ps = psil.create(),

View File

@ -29,6 +29,7 @@ pocket.MQ__RENDER_CMD = MQ__RENDER_CMD
pocket.MQ__RENDER_DATA = MQ__RENDER_DATA pocket.MQ__RENDER_DATA = MQ__RENDER_DATA
---@type pkt_config ---@type pkt_config
---@diagnostic disable-next-line: missing-fields
local config = {} local config = {}
pocket.config = config pocket.config = config

View File

@ -29,6 +29,7 @@ local PCALL_SCRAM_MSG = "Scram requires the reactor to be active."
local PCALL_START_MSG = "Reactor is already active." local PCALL_START_MSG = "Reactor is already active."
---@type plc_config ---@type plc_config
---@diagnostic disable-next-line: missing-fields
local config = {} local config = {}
plc.config = config plc.config = config

View File

@ -19,6 +19,7 @@ local MGMT_TYPE = comms.MGMT_TYPE
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE
---@type rtu_config ---@type rtu_config
---@diagnostic disable-next-line: missing-fields
local config = {} local config = {}
rtu.config = config rtu.config = config