Регрессия. Не работает контроль прибора УФ

This commit is contained in:
sasha80
2025-10-01 14:09:02 +03:00
parent 0b3f28d438
commit 4c65fd92ac
3 changed files with 6 additions and 2 deletions

View File

@@ -12,11 +12,11 @@ func _ready() -> void:
return
var unit_uf = network.get_unit_instance('уарэп-эмс')
unit_uf.connect('line_changed', on_line_changed)
on_timer.bind(unit_uf)
control_vk()
func on_timer(unit_uf: unit.Unit):
func on_timer(unit_name: StringName):
var unit_uf = network.get_unit_instance(unit_name)
status_uf() # отслеживание состояния прибора
if unit_uf.online: # проверка ЯУ, внутреннего коммутатора и ИП-5Б
control_ems(unit_uf.status) # проверка ЭМС ячеек

View File

@@ -155,3 +155,6 @@ horizontal_alignment = 1
vertical_alignment = 1
[node name="timer" type="Timer" parent="."]
autostart = true
[connection signal="timeout" from="timer" to="." method="on_timer" binds= [&"уарэп-эмс"]]

View File

@@ -326,6 +326,7 @@ vertical_alignment = 1
[node name="frame" type="NinePatchRect" parent="pribor_uf"]
visible = false
self_modulate = Color(0.890196, 0.486275, 0.196078, 1)
layout_mode = 0
offset_left = -14.0
offset_top = -30.0