отладка мощности

This commit is contained in:
2025-02-12 09:19:28 +03:00
parent 54ff1757b2
commit d583c544fb
8 changed files with 140 additions and 67 deletions

View File

@@ -5,7 +5,15 @@ var node_cell_ind: Array
var count_cell: int
var past_pribor: int
func _ready() -> void:
Network.connect('port_fs_opened_1', _on_fs_status_1.bind(Constants.STATE_VAL.GOOD))
Network.connect('port_fs_closed_1', _on_fs_status_1.bind(Constants.STATE_VAL.ERROR))
Network.connect('port_fs_opened_2', _on_fs_status_2.bind(Constants.STATE_VAL.GOOD))
Network.connect('port_fs_closed_2', _on_fs_status_2.bind(Constants.STATE_VAL.ERROR))
self.add_child(timer)
timer.connect('timeout', Callable(self, '_on_timer').bind(Network.unit))
timer.start(1)
@@ -79,6 +87,7 @@ func _status_cell(status):
for i in range(5, count_cell):
node_cell_ind[i].state = Constants.STATE_VAL.NONE
func _status_prd():
var status: int = 0
for i in range(count_cell-3):
@@ -199,3 +208,12 @@ func _draw_control_panel_prd(pribor):
$soc_P1/MAA_2.rname = 'А28'
# Кассета П-2
$soc_P2.visible = true
func _on_fs_status_1(_name_port, status_fs_1):
$Kasseta_FS/ref_A1.state = status_fs_1
func _on_fs_status_2(_name_port, status_fs_2):
$Kasseta_FS/ref_A2.state = status_fs_2