Commit 5aec09e0 authored by Bernardo Quaresma Dias's avatar Bernardo Quaresma Dias
Browse files

Revisão de painéis de otmflot e bandas

INSTMPA-1270
parent bc06e813
......@@ -30,14 +30,9 @@ local function createModBandasPannel(instid, classid)
local tag_mon_pv = bandas.m_mon_pv
local act_ctrl = getinstance(bandas.m_act_ctrl, 'mod_bandas_act_ctrl')
local mon_pv = getinstance(tag_mon_pv , 'mod_bandas_mon_pv')
local cav_pert = getinstance(bandas.m_cav_pert, 'mod_bandas_cav_pert')
local tag_mon_pert = cav_pert.m_mon_pert
local mon_pert = getinstance(tag_mon_pert, 'mod_bandas_mon_pert')
local ctrl = getinstance(bandas.e_ctrl, 'controlador')
local chave_hab = getinstance(cav_pert.chave_hab, 'chave')
......@@ -49,13 +44,8 @@ local function createModBandasPannel(instid, classid)
ihm.Named(ihm.Number(tag_mon_pv, 'mod_bandas_mon_pv', 'ret_pv_fltr'), "PV Fltr."),
ihm.Named(ihm.Number(tag_mon_pv, 'mod_bandas_mon_pv', 'ret_mon'), "PV Mon."),
ihm.Named(ihm.Number(ctrl.mv), "MV"),
ihm.Named(ihm.Number(act_ctrl.ind_mv_min_act), "MV Mn."),
ihm.Named(ihm.Number(act_ctrl.ind_mv_max_act), "MV Mx."),
ihm.Named(ihm.Number(ctrl.kp), "KP"),
ihm.Named(ihm.Number(ctrl.ki), "KI"),
-- ihm.Named(ihm.Number(ptopo_max), "Grau Pert."),
ihm.Named(ihm.Number(tag_mon_pert, 'mod_bandas_mon_pert', 'cfg_grau_pert_min'), "G. Pert. Mn"),
ihm.Named(ihm.Number(tag_mon_pert, 'mod_bandas_mon_pert', 'cfg_grau_pert_max'), "G. Pert. Mx"),
iup.fill{expand = "VERTICAL"},
}
......
......@@ -13,7 +13,7 @@ local function getinstance(instid, classid, opt)
end
function getalltags(classid)
local class = plant[classid] --[[DEBUG]] assert(class, "classid not found: "..tostring(classid))
local class = plant[classid] -- [[DEBUG]] assert(class, "classid not found: "..tostring(classid))
local tags = {}
for tag, eq in pairs(class) do
......@@ -33,7 +33,7 @@ function createRetBox(title, box, horizontal)
}
local ret_box = { alignment = horizontal and 'ATOP' or 'ARIGHT'}
for i, item in ipairs(box) do --[[DEBUG]] print("adicionando item", i, title )
for i, item in ipairs(box) do -- [[DEBUG]] print("adicionando item", i, title )
ret_box[#ret_box+1] = item
end
......@@ -44,7 +44,7 @@ function createRetBox(title, box, horizontal)
}
end
local function createSDVPannel(instid, name) --[[DEBUG]] print("Criando painel para", instid)
local function createSDVPannel(instid, name) -- [[DEBUG]] print("Criando painel para", instid)
local inst = getinstance(instid, 'valvula_on_off')
local tag_ab = inst.indicacao_aberto
......@@ -61,7 +61,7 @@ local function createSDVPannel(instid, name) --[[DEBUG]
return createRetBox(name or instid, inst_box, true)
end
local function createCtrlPIDPannel(instid, name) --[[DEBUG]] print("Criando painel para", instid)
local function createCtrlPIDPannel(instid, name) -- [[DEBUG]] print("Criando painel para", instid)
local inst = getinstance(instid, 'controlador')
local tag_pv = inst.pv
......@@ -84,7 +84,7 @@ local function createCtrlPIDPannel(instid, name) --[[DE
return createRetBox(name or instid, inst_box, true)
end
local function createFlotPannel(instid) --[[DEBUG]] print("Criando painel para", instid)
local function createFlotPannel(instid) -- [[DEBUG]] print("Criando painel para", instid)
local inst = getinstance(instid, 'equip_flotador')
local tag_sdv = inst.e_sdv
......@@ -234,7 +234,7 @@ local function createCAvPescoco(instid)
return createRetBox(instid, inst_box)
end
local function createFlotModulesPannel(otmflot, flotidx) --[[DEBUG]] print("Criando painel de mdulos de flotador para flotador ", flotidx)
local function createFlotModulesPannel(otmflot, flotidx) -- [[DEBUG]] print("Criando painel de mdulos de flotador para flotador ", flotidx)
local trem_flot = getinstance(otmflot.a_trem_flot, 'area_trem_flot')
local tag_flot = trem_flot['e_flotador_'..flotidx]
local tag_aut_rampa = otmflot['m_aut_rampa_flot_'..flotidx]
......@@ -260,7 +260,7 @@ local function createFlotModulesPannel(otmflot, flotidx)
return flot_box and createRetBox("Flot. "..flotidx, flot_box)
end
local function createModOtmFlotPannel(instid, classid) --[[DEBUG]] print("Criando painel para", instid, classid)
local function createModOtmFlotPannel(instid, classid) -- [[DEBUG]] print("Criando painel para", instid, classid)
local otmflot = getinstance(instid, classid)
--- flotadores
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment