Рефактор. pribor-prd.gd и позиции сцены
This commit is contained in:
@@ -30,7 +30,9 @@ autostart = true
|
||||
|
||||
[node name="bort" parent="." instance=ExtResource("3_d7iti")]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 27.7778
|
||||
offset_right = 604.0
|
||||
offset_bottom = 1216.78
|
||||
metadata/DeviceName = &"Устройство РР левого борта"
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
[node name="pribor_afsp" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_left = 81.0
|
||||
offset_left = 82.0
|
||||
offset_top = 108.0
|
||||
offset_right = 81.0
|
||||
offset_right = 82.0
|
||||
offset_bottom = 108.0
|
||||
scale = Vector2(1, 0.9)
|
||||
script = ExtResource("1_tfses")
|
||||
@@ -30,9 +30,9 @@ autostart = true
|
||||
|
||||
[node name="bort" parent="." instance=ExtResource("3_xpxb5")]
|
||||
layout_mode = 0
|
||||
offset_left = -11.0
|
||||
offset_left = 12.0
|
||||
offset_top = -59.0
|
||||
offset_right = 569.0
|
||||
offset_right = 592.0
|
||||
offset_bottom = 1130.0
|
||||
metadata/DeviceName = &"Устройство РР правого борта"
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_left = 115.0
|
||||
offset_top = 150.0
|
||||
offset_top = 148.0
|
||||
offset_right = 115.0
|
||||
offset_bottom = 150.0
|
||||
offset_bottom = 148.0
|
||||
script = ExtResource("1_bhc4e")
|
||||
prefix_path = "DeviceDescription[DeviceName]"
|
||||
this_bpo1_name = "Устройство БПО левого борта"
|
||||
@@ -24,10 +24,10 @@ settings_path_to_wait_time = "Период опроса состояния БП
|
||||
|
||||
[node name="mod_pit_g1" parent="." instance=ExtResource("2_jp6m0")]
|
||||
layout_mode = 2
|
||||
offset_left = 40.0
|
||||
offset_top = 535.0
|
||||
offset_right = 560.0
|
||||
offset_bottom = 605.0
|
||||
offset_left = 9.0
|
||||
offset_top = 377.0
|
||||
offset_right = 529.0
|
||||
offset_bottom = 447.0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 7
|
||||
fname = "Модуль электропитания"
|
||||
@@ -35,20 +35,20 @@ rname = "G1"
|
||||
|
||||
[node name="blok_bpo_a1" parent="." instance=ExtResource("2_jp6m0")]
|
||||
layout_mode = 0
|
||||
offset_left = 40.0
|
||||
offset_top = 135.0
|
||||
offset_right = 560.0
|
||||
offset_bottom = 330.0
|
||||
offset_left = 9.0
|
||||
offset_top = -23.0
|
||||
offset_right = 529.0
|
||||
offset_bottom = 172.0
|
||||
show_state = false
|
||||
fname = "Блок БПО левого борта"
|
||||
rname = "А1"
|
||||
|
||||
[node name="grid_bpo_a1" type="GridContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 50.0
|
||||
offset_top = 175.0
|
||||
offset_right = 498.0
|
||||
offset_bottom = 320.0
|
||||
offset_left = 19.0
|
||||
offset_top = 17.0
|
||||
offset_right = 467.0
|
||||
offset_bottom = 162.0
|
||||
columns = 4
|
||||
|
||||
[node name="kanal1" parent="grid_bpo_a1" groups=["потребитель-питания"] instance=ExtResource("2_jp6m0")]
|
||||
@@ -108,30 +108,30 @@ fname = "Канал 8"
|
||||
metadata/state = "SelfTest[0].SystemList[0].DevList[7]['TestPassed']"
|
||||
|
||||
[node name="yas_bpo_a1" parent="." groups=["потребитель-питания"] instance=ExtResource("3_jcpjs")]
|
||||
offset_left = 500.0
|
||||
offset_top = 175.0
|
||||
offset_right = 550.0
|
||||
offset_bottom = 320.0
|
||||
offset_left = 469.0
|
||||
offset_top = 17.0
|
||||
offset_right = 519.0
|
||||
offset_bottom = 162.0
|
||||
show_rname = false
|
||||
self_size = Vector2i(50, 145)
|
||||
fname = "Яч. связи"
|
||||
|
||||
[node name="blok_bpo_a2" parent="." instance=ExtResource("2_jp6m0")]
|
||||
layout_mode = 0
|
||||
offset_left = 40.0
|
||||
offset_top = 335.0
|
||||
offset_right = 560.0
|
||||
offset_bottom = 530.0
|
||||
offset_left = 9.0
|
||||
offset_top = 177.0
|
||||
offset_right = 529.0
|
||||
offset_bottom = 372.0
|
||||
show_state = false
|
||||
fname = "Блок БПО правого борта"
|
||||
rname = "А2"
|
||||
|
||||
[node name="grid_bpo_a2" type="GridContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 50.0
|
||||
offset_top = 375.0
|
||||
offset_right = 498.0
|
||||
offset_bottom = 520.0
|
||||
offset_left = 19.0
|
||||
offset_top = 217.0
|
||||
offset_right = 467.0
|
||||
offset_bottom = 362.0
|
||||
columns = 4
|
||||
|
||||
[node name="kanal1" parent="grid_bpo_a2" groups=["потребитель-питания", "управляется-по-шине-2"] instance=ExtResource("2_jp6m0")]
|
||||
@@ -191,10 +191,10 @@ fname = "Канал 8"
|
||||
metadata/state = "SelfTest[0].SystemList[0].DevList[7]['TestPassed']"
|
||||
|
||||
[node name="yas_bpo_a2" parent="." groups=["потребитель-питания"] instance=ExtResource("3_jcpjs")]
|
||||
offset_left = 500.0
|
||||
offset_top = 375.0
|
||||
offset_right = 550.0
|
||||
offset_bottom = 520.0
|
||||
offset_left = 469.0
|
||||
offset_top = 217.0
|
||||
offset_right = 519.0
|
||||
offset_bottom = 362.0
|
||||
show_rname = false
|
||||
self_size = Vector2i(50, 145)
|
||||
fname = "Яч. связи"
|
||||
|
||||
@@ -25,12 +25,12 @@ func _ready() -> void:
|
||||
func _process(_delta: float) -> void:
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
set_frame($input_0, unit_prd_k.ems_input_1)
|
||||
set_frame($input_1, unit_prd_k.ems_input_2)
|
||||
set_frame($input_2, unit_prd_k.ems_input_lit_1)
|
||||
set_frame($output_0, unit_prd_k.ems_output_1)
|
||||
set_frame($output_1, unit_prd_k.ems_output_2)
|
||||
set_frame($output_2, unit_prd_k.ems_output_lit_1)
|
||||
set_frame($input_0, unit_prd_k.ems_g_sock_dic.ems_input_1)
|
||||
set_frame($input_1, unit_prd_k.ems_g_sock_dic.ems_input_2)
|
||||
set_frame($input_2, unit_prd_k.ems_g_sock_dic.ems_input_lit_1)
|
||||
set_frame($output_0, unit_prd_k.ems_g_sock_dic.ems_output_1)
|
||||
set_frame($output_1, unit_prd_k.ems_g_sock_dic.ems_output_2)
|
||||
set_frame($output_2, unit_prd_k.ems_g_sock_dic.ems_output_lit_1)
|
||||
|
||||
|
||||
func set_frame(node_frame: Node, val: int): node_frame.set_frame(val)
|
||||
|
||||
@@ -46,55 +46,55 @@ script = ExtResource("1_tpdyp")
|
||||
|
||||
[node name="kasseta_u5" parent="." instance=ExtResource("2_tb85r")]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 242.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 214.0
|
||||
offset_top = 96.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 286.0
|
||||
|
||||
[node name="maa2000_A22" parent="." groups=["power_supply"] instance=ExtResource("1_8dmgr")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 907.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 524.0
|
||||
offset_top = 761.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 803.0
|
||||
fname = "MAA2000"
|
||||
rname = "A28"
|
||||
metadata/ip = "maa2000_1"
|
||||
|
||||
[node name="dou6_A7" parent="." groups=["default_reset"] instance=ExtResource("1_8dmgr")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 862.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 907.0
|
||||
offset_left = 47.0
|
||||
offset_top = 716.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 761.0
|
||||
fname = "ДОУ-6"
|
||||
rname = "A7"
|
||||
|
||||
[node name="maa2000_A23" parent="." groups=["power_supply"] instance=ExtResource("1_8dmgr")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 907.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 47.0
|
||||
offset_top = 761.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 803.0
|
||||
fname = "MAA2000"
|
||||
rname = "A27"
|
||||
metadata/ip = "maa2000_2"
|
||||
|
||||
[node name="dou7_A8" parent="." groups=["default_reset"] instance=ExtResource("1_8dmgr")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 812.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 860.0
|
||||
offset_left = 47.0
|
||||
offset_top = 666.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 714.0
|
||||
fname = "ДОУ-7"
|
||||
rname = "A8"
|
||||
|
||||
[node name="ref_ZZ3" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 812.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 214.0
|
||||
offset_top = 666.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 803.0
|
||||
texture = ExtResource("2_14h25")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -115,10 +115,10 @@ vertical_alignment = 1
|
||||
|
||||
[node name="um1535_A10" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 242.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 337.0
|
||||
offset_left = 524.0
|
||||
offset_top = 96.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 191.0
|
||||
value0 = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
|
||||
fname = "УМ1535Б"
|
||||
rname = "A10"
|
||||
@@ -128,10 +128,10 @@ metadata/um = "um_1"
|
||||
|
||||
[node name="um1535_A11" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 337.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 524.0
|
||||
offset_top = 191.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 286.0
|
||||
fname = "УМ1535Б"
|
||||
rname = "A11"
|
||||
value0_info = "Мощность"
|
||||
@@ -140,10 +140,10 @@ metadata/um = "um_2"
|
||||
|
||||
[node name="um1535_A12" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 432.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 527.0
|
||||
offset_left = 524.0
|
||||
offset_top = 286.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 381.0
|
||||
fname = "УМ1535Б"
|
||||
rname = "A12"
|
||||
value0_info = "Мощность"
|
||||
@@ -152,10 +152,10 @@ metadata/um = "um_3"
|
||||
|
||||
[node name="um1535_A13" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 527.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 524.0
|
||||
offset_top = 381.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 476.0
|
||||
fname = "УМ1535Б"
|
||||
rname = "A13"
|
||||
value0_info = "Мощность"
|
||||
@@ -164,10 +164,10 @@ metadata/um = "um_4"
|
||||
|
||||
[node name="um1535_A14" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 622.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 717.0
|
||||
offset_left = 524.0
|
||||
offset_top = 476.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 571.0
|
||||
fname = "УМ1535Б"
|
||||
rname = "A14"
|
||||
value0_info = "Мощность"
|
||||
@@ -176,10 +176,10 @@ metadata/um = "um_5"
|
||||
|
||||
[node name="um1535_A15" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 717.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 524.0
|
||||
offset_top = 571.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 666.0
|
||||
fname = "УМ1535Б"
|
||||
rname = "A15"
|
||||
value0_info = "Мощность"
|
||||
@@ -188,10 +188,10 @@ metadata/um = "um_6"
|
||||
|
||||
[node name="блок-к" parent="." groups=["power_amplifier"] instance=ExtResource("6_wd1vi")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 812.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 907.0
|
||||
offset_left = 524.0
|
||||
offset_top = 666.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 761.0
|
||||
fname = "УТМ80"
|
||||
rname = "A9"
|
||||
value0_info = "Мощность"
|
||||
@@ -200,10 +200,10 @@ metadata/um = "um_8"
|
||||
|
||||
[node name="rm1620m_A16" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 242.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 337.0
|
||||
offset_left = 47.0
|
||||
offset_top = 96.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 191.0
|
||||
fname = "РМ16-20М"
|
||||
rname = "A16"
|
||||
value0_info = "Мощность"
|
||||
@@ -212,10 +212,10 @@ metadata/um = "um_9"
|
||||
|
||||
[node name="rm1620m_A17" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 337.0
|
||||
offset_right = 173.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 47.0
|
||||
offset_top = 191.0
|
||||
offset_right = 212.0
|
||||
offset_bottom = 286.0
|
||||
fname = "РМ16-20М"
|
||||
rname = "A17"
|
||||
value0_info = "Мощность"
|
||||
@@ -224,10 +224,10 @@ metadata/um = "um_10"
|
||||
|
||||
[node name="rm1620m_A18" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 432.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 527.0
|
||||
offset_left = 47.0
|
||||
offset_top = 286.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 381.0
|
||||
fname = "РМ16-20М"
|
||||
rname = "A18"
|
||||
value0_info = "Мощность"
|
||||
@@ -236,10 +236,10 @@ metadata/um = "um_11"
|
||||
|
||||
[node name="rm1620m_A19" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 527.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 47.0
|
||||
offset_top = 381.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 476.0
|
||||
fname = "РМ16-20М"
|
||||
rname = "A19"
|
||||
value0_info = "Мощность"
|
||||
@@ -248,10 +248,10 @@ metadata/um = "um_12"
|
||||
|
||||
[node name="rm1620m_A20" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 622.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 717.0
|
||||
offset_left = 47.0
|
||||
offset_top = 476.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 571.0
|
||||
fname = "РМ16-20М"
|
||||
rname = "A20"
|
||||
value0_info = "Мощность"
|
||||
@@ -260,10 +260,10 @@ metadata/um = "um_13"
|
||||
|
||||
[node name="rm1620m_A21" parent="." groups=["power_amplifier"] instance=ExtResource("5_c7lv8")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 717.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 47.0
|
||||
offset_top = 571.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 666.0
|
||||
fname = "РМ16-20М"
|
||||
rname = "A21"
|
||||
value0_info = "Мощность"
|
||||
@@ -272,18 +272,18 @@ metadata/um = "um_14"
|
||||
|
||||
[node name="kasseta_fs_kd" parent="." instance=ExtResource("7_ia27q")]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 432.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 214.0
|
||||
offset_top = 286.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 476.0
|
||||
fname = "Кассета ФС-КД"
|
||||
|
||||
[node name="kasseta_p_1" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 622.0
|
||||
offset_right = 340.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 214.0
|
||||
offset_top = 476.0
|
||||
offset_right = 379.0
|
||||
offset_bottom = 666.0
|
||||
texture = ExtResource("2_14h25")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -332,42 +332,50 @@ vertical_alignment = 1
|
||||
|
||||
[node name="kasseta_p_2" parent="." instance=ExtResource("8_6fdp7")]
|
||||
layout_mode = 0
|
||||
offset_left = 365.0
|
||||
offset_top = 622.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 404.0
|
||||
offset_top = 476.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 666.0
|
||||
fname = "Кассета П-2"
|
||||
|
||||
[node name="control_result" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 9.0
|
||||
offset_top = 960.0
|
||||
offset_right = 649.0
|
||||
offset_bottom = 1003.0
|
||||
text = "Прибор ПРД- неисправен"
|
||||
horizontal_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="input_0" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(353, 618)
|
||||
position = Vector2(392, 472)
|
||||
sprite_frames = SubResource("SpriteFrames_di0aa")
|
||||
|
||||
[node name="input_1" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(405, 618)
|
||||
position = Vector2(444, 472)
|
||||
sprite_frames = SubResource("SpriteFrames_di0aa")
|
||||
|
||||
[node name="input_2" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(255, 619)
|
||||
position = Vector2(294, 473)
|
||||
sprite_frames = SubResource("SpriteFrames_di0aa")
|
||||
|
||||
[node name="output_0" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(355, 464)
|
||||
position = Vector2(394, 318)
|
||||
sprite_frames = SubResource("SpriteFrames_di0aa")
|
||||
|
||||
[node name="output_1" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(405, 464)
|
||||
position = Vector2(444, 318)
|
||||
sprite_frames = SubResource("SpriteFrames_di0aa")
|
||||
|
||||
[node name="output_2" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(255, 464)
|
||||
position = Vector2(294, 318)
|
||||
sprite_frames = SubResource("SpriteFrames_di0aa")
|
||||
|
||||
[node name="control_result" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 49.0
|
||||
offset_top = 993.0
|
||||
offset_right = 689.0
|
||||
offset_bottom = 1036.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
horizontal_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="line" type="Line2D" parent="."]
|
||||
position = Vector2(59, 920)
|
||||
scale = Vector2(1.03548, 1)
|
||||
points = PackedVector2Array(-8, 0, 61.8069, 0, 608, 0)
|
||||
width = 2.0
|
||||
default_color = Color(1, 1, 1, 0.352941)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
@@ -25,10 +25,10 @@ func _ready() -> void:
|
||||
func _process(_delta: float) -> void:
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
set_frame($input_0, unit_prd_n.ems_input_1)
|
||||
set_frame($input_1, unit_prd_n.ems_input_2)
|
||||
set_frame($output_0, unit_prd_n.ems_output_1)
|
||||
set_frame($output_1, unit_prd_n.ems_output_2)
|
||||
set_frame($input_0, unit_prd_n.ems_g_sock_dic.ems_input_1)
|
||||
set_frame($input_1, unit_prd_n.ems_g_sock_dic.ems_input_2)
|
||||
set_frame($output_0, unit_prd_n.ems_g_sock_dic.ems_output_1)
|
||||
set_frame($output_1, unit_prd_n.ems_g_sock_dic.ems_output_2)
|
||||
|
||||
|
||||
func set_frame(node_frame: Node, val: int): node_frame.set_frame(val)
|
||||
|
||||
@@ -42,48 +42,48 @@ script = ExtResource("1_bnnv3")
|
||||
|
||||
[node name="maa2000_A23" parent="." groups=["power_supply"] instance=ExtResource("2_is25t")]
|
||||
layout_mode = 2
|
||||
offset_left = 8.0
|
||||
offset_top = 877.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 47.0
|
||||
offset_top = 731.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 803.0
|
||||
fname = "MAA2000"
|
||||
rname = "A23"
|
||||
metadata/ip = "maa2000_2"
|
||||
|
||||
[node name="maa2000_A22" parent="." groups=["power_supply"] instance=ExtResource("2_is25t")]
|
||||
layout_mode = 2
|
||||
offset_left = 485.0
|
||||
offset_top = 877.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 524.0
|
||||
offset_top = 731.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 803.0
|
||||
fname = "MAA2000"
|
||||
rname = "A22"
|
||||
metadata/ip = "maa2000_1"
|
||||
|
||||
[node name="dou2_A5" parent="." groups=["default_reset"] instance=ExtResource("2_is25t")]
|
||||
layout_mode = 2
|
||||
offset_left = 485.0
|
||||
offset_top = 812.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 877.0
|
||||
offset_left = 524.0
|
||||
offset_top = 666.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 731.0
|
||||
fname = "ДОУ-2"
|
||||
rname = "A5"
|
||||
|
||||
[node name="dou3_A6" parent="." groups=["default_reset"] instance=ExtResource("2_is25t")]
|
||||
layout_mode = 2
|
||||
offset_left = 8.0
|
||||
offset_top = 812.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 877.0
|
||||
offset_left = 47.0
|
||||
offset_top = 666.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 731.0
|
||||
fname = "ДОУ-3"
|
||||
rname = "A6"
|
||||
|
||||
[node name="ref_ZZ3" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 812.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 214.0
|
||||
offset_top = 666.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 803.0
|
||||
texture = ExtResource("3_meukj")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -104,10 +104,10 @@ vertical_alignment = 1
|
||||
|
||||
[node name="kasseta_U5" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 242.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 214.0
|
||||
offset_top = 96.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 286.0
|
||||
texture = ExtResource("3_meukj")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -182,10 +182,10 @@ metadata/y5 = "ukp2"
|
||||
|
||||
[node name="kasseta_FS_ND" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 432.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 214.0
|
||||
offset_top = 286.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 476.0
|
||||
texture = ExtResource("3_meukj")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -242,10 +242,10 @@ rname = "A3"
|
||||
|
||||
[node name="kasseta_P_1" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 622.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 214.0
|
||||
offset_top = 476.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 666.0
|
||||
texture = ExtResource("3_meukj")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -294,10 +294,10 @@ vertical_alignment = 1
|
||||
|
||||
[node name="um1535_A7" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 242.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 337.0
|
||||
offset_left = 524.0
|
||||
offset_top = 96.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 191.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A7"
|
||||
value0_info = "Мощность"
|
||||
@@ -306,10 +306,10 @@ metadata/um = "um_1"
|
||||
|
||||
[node name="um1535_A8" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 337.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 524.0
|
||||
offset_top = 191.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 286.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A8"
|
||||
value0_info = "Мощность"
|
||||
@@ -318,10 +318,10 @@ metadata/um = "um_2"
|
||||
|
||||
[node name="um1535_A9" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 432.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 527.0
|
||||
offset_left = 524.0
|
||||
offset_top = 286.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 381.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A9"
|
||||
value0_info = "Мощность"
|
||||
@@ -330,10 +330,10 @@ metadata/um = "um_3"
|
||||
|
||||
[node name="um1535_A10" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 527.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 524.0
|
||||
offset_top = 381.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 476.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A10"
|
||||
value0_info = "Мощность"
|
||||
@@ -342,10 +342,10 @@ metadata/um = "um_4"
|
||||
|
||||
[node name="um1535_A11" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 622.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 717.0
|
||||
offset_left = 524.0
|
||||
offset_top = 476.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 571.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A11"
|
||||
value0_info = "Мощность"
|
||||
@@ -354,10 +354,10 @@ metadata/um = "um_5"
|
||||
|
||||
[node name="um1535_A12" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 717.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 524.0
|
||||
offset_top = 571.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 666.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A12"
|
||||
value0_info = "Мощность"
|
||||
@@ -366,10 +366,10 @@ metadata/um = "um_6"
|
||||
|
||||
[node name="um1535_A13" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 242.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 337.0
|
||||
offset_left = 47.0
|
||||
offset_top = 96.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 191.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A13"
|
||||
value0_info = "Мощность"
|
||||
@@ -378,10 +378,10 @@ metadata/um = "um_9"
|
||||
|
||||
[node name="um1535_A14" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 337.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 47.0
|
||||
offset_top = 191.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 286.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A14"
|
||||
value0_info = "Мощность"
|
||||
@@ -390,10 +390,10 @@ metadata/um = "um_10"
|
||||
|
||||
[node name="um1535_A15" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 432.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 527.0
|
||||
offset_left = 47.0
|
||||
offset_top = 286.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 381.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A15"
|
||||
value0_info = "Мощность"
|
||||
@@ -402,10 +402,10 @@ metadata/um = "um_11"
|
||||
|
||||
[node name="um1535_A16" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 527.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 47.0
|
||||
offset_top = 381.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 476.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A16"
|
||||
value0_info = "Мощность"
|
||||
@@ -414,10 +414,10 @@ metadata/um = "um_12"
|
||||
|
||||
[node name="um1535_A17" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 622.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 717.0
|
||||
offset_left = 47.0
|
||||
offset_top = 476.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 571.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A17"
|
||||
value0_info = "Мощность"
|
||||
@@ -426,10 +426,10 @@ metadata/um = "um_13"
|
||||
|
||||
[node name="um1535_A18" parent="." groups=["power_amplifier"] instance=ExtResource("7_bnnv3")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 717.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 47.0
|
||||
offset_top = 571.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 666.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A18"
|
||||
value0_info = "Мощность"
|
||||
@@ -438,25 +438,34 @@ metadata/um = "um_14"
|
||||
|
||||
[node name="control_result" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 9.0
|
||||
offset_top = 960.0
|
||||
offset_right = 649.0
|
||||
offset_bottom = 1003.0
|
||||
offset_left = 49.0
|
||||
offset_top = 993.0
|
||||
offset_right = 689.0
|
||||
offset_bottom = 1036.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
horizontal_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="input_0" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(456, 589)
|
||||
position = Vector2(495, 443)
|
||||
sprite_frames = SubResource("SpriteFrames_1wf07")
|
||||
|
||||
[node name="input_1" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(207, 586)
|
||||
position = Vector2(246, 440)
|
||||
sprite_frames = SubResource("SpriteFrames_1wf07")
|
||||
|
||||
[node name="output_0" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(458, 476)
|
||||
position = Vector2(497, 330)
|
||||
sprite_frames = SubResource("SpriteFrames_1wf07")
|
||||
|
||||
[node name="output_1" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(210, 477)
|
||||
position = Vector2(249, 331)
|
||||
sprite_frames = SubResource("SpriteFrames_1wf07")
|
||||
|
||||
[node name="line" type="Line2D" parent="."]
|
||||
position = Vector2(59, 920)
|
||||
scale = Vector2(1.03548, 1)
|
||||
points = PackedVector2Array(-8, 0, 61.8069, 0, 608, 0)
|
||||
width = 2.0
|
||||
default_color = Color(1, 1, 1, 0.352941)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
@@ -24,10 +24,10 @@ func _ready() -> void:
|
||||
func _process(_delta: float) -> void:
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
set_frame($input_0, unit_prd_v.ems_input_1)
|
||||
set_frame($input_1, unit_prd_v.ems_input_2)
|
||||
set_frame($output_0, unit_prd_v.ems_output_1)
|
||||
set_frame($output_1, unit_prd_v.ems_output_2)
|
||||
set_frame($input_0, unit_prd_v.ems_g_sock_dic.ems_input_1)
|
||||
set_frame($input_1, unit_prd_v.ems_g_sock_dic.ems_input_2)
|
||||
set_frame($output_0, unit_prd_v.ems_g_sock_dic.ems_output_1)
|
||||
set_frame($output_1, unit_prd_v.ems_g_sock_dic.ems_output_2)
|
||||
|
||||
|
||||
func set_frame(node_frame: Node, val: int): node_frame.set_frame(val)
|
||||
|
||||
@@ -43,48 +43,48 @@ script = ExtResource("1_c20s6")
|
||||
|
||||
[node name="maa2000_A22" parent="." groups=["power_supply"] instance=ExtResource("2_xpo4b")]
|
||||
layout_mode = 2
|
||||
offset_left = 485.0
|
||||
offset_top = 877.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 524.0
|
||||
offset_top = 731.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 803.0
|
||||
fname = "MAA2000"
|
||||
rname = "A22"
|
||||
metadata/ip = "maa2000_1"
|
||||
|
||||
[node name="dou4_A5" parent="." groups=["default_reset"] instance=ExtResource("2_xpo4b")]
|
||||
layout_mode = 2
|
||||
offset_left = 485.0
|
||||
offset_top = 812.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 877.0
|
||||
offset_left = 524.0
|
||||
offset_top = 666.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 731.0
|
||||
fname = "ДОУ-4"
|
||||
rname = "A5"
|
||||
|
||||
[node name="maa2000_A23" parent="." groups=["power_supply"] instance=ExtResource("2_xpo4b")]
|
||||
layout_mode = 2
|
||||
offset_left = 8.0
|
||||
offset_top = 877.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 47.0
|
||||
offset_top = 731.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 803.0
|
||||
fname = "MAA2000"
|
||||
rname = "A23"
|
||||
metadata/ip = "maa2000_2"
|
||||
|
||||
[node name="dou5_A6" parent="." groups=["default_reset"] instance=ExtResource("2_xpo4b")]
|
||||
layout_mode = 2
|
||||
offset_left = 8.0
|
||||
offset_top = 812.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 877.0
|
||||
offset_left = 47.0
|
||||
offset_top = 666.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 731.0
|
||||
fname = "ДОУ-5"
|
||||
rname = "A6"
|
||||
|
||||
[node name="ref_ZZ3" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 812.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 949.0
|
||||
offset_left = 214.0
|
||||
offset_top = 666.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 803.0
|
||||
texture = ExtResource("3_wyy1b")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -105,10 +105,10 @@ vertical_alignment = 1
|
||||
|
||||
[node name="kasseta_U5" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 242.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 214.0
|
||||
offset_top = 96.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 286.0
|
||||
texture = ExtResource("3_wyy1b")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -183,18 +183,18 @@ metadata/y5 = "ukp2"
|
||||
|
||||
[node name="kasseta_FS_VD" parent="." instance=ExtResource("5_nhd2k")]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 432.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 214.0
|
||||
offset_top = 286.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 476.0
|
||||
fname = "Кассета ФС-ВД"
|
||||
|
||||
[node name="kasseta_P_1" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 175.0
|
||||
offset_top = 622.0
|
||||
offset_right = 485.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 214.0
|
||||
offset_top = 476.0
|
||||
offset_right = 524.0
|
||||
offset_bottom = 666.0
|
||||
texture = ExtResource("3_wyy1b")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -243,10 +243,10 @@ vertical_alignment = 1
|
||||
|
||||
[node name="um1535_A7" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 242.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 337.0
|
||||
offset_left = 524.0
|
||||
offset_top = 96.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 191.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A7"
|
||||
value0_info = "Мощность"
|
||||
@@ -255,10 +255,10 @@ metadata/um = "um_1"
|
||||
|
||||
[node name="um1535_A8" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 337.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 524.0
|
||||
offset_top = 191.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 286.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A8"
|
||||
value0_info = "Мощность"
|
||||
@@ -267,10 +267,10 @@ metadata/um = "um_2"
|
||||
|
||||
[node name="um1535_A9" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 432.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 527.0
|
||||
offset_left = 524.0
|
||||
offset_top = 286.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 381.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A9"
|
||||
value0_info = "Мощность"
|
||||
@@ -279,10 +279,10 @@ metadata/um = "um_3"
|
||||
|
||||
[node name="um1535_A10" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 527.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 524.0
|
||||
offset_top = 381.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 476.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A10"
|
||||
value0_info = "Мощность"
|
||||
@@ -291,10 +291,10 @@ metadata/um = "um_4"
|
||||
|
||||
[node name="um1535_A11" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 622.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 717.0
|
||||
offset_left = 524.0
|
||||
offset_top = 476.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 571.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A11"
|
||||
value0_info = "Мощность"
|
||||
@@ -303,10 +303,10 @@ metadata/um = "um_5"
|
||||
|
||||
[node name="um1535_A12" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 485.0
|
||||
offset_top = 717.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 524.0
|
||||
offset_top = 571.0
|
||||
offset_right = 691.0
|
||||
offset_bottom = 666.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A12"
|
||||
value0_info = "Мощность"
|
||||
@@ -315,10 +315,10 @@ metadata/um = "um_6"
|
||||
|
||||
[node name="um1535_A13" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 242.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 337.0
|
||||
offset_left = 47.0
|
||||
offset_top = 96.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 191.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A13"
|
||||
value0_info = "Мощность"
|
||||
@@ -327,10 +327,10 @@ metadata/um = "um_9"
|
||||
|
||||
[node name="um1535_A14" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 337.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 432.0
|
||||
offset_left = 47.0
|
||||
offset_top = 191.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 286.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A14"
|
||||
value0_info = "Мощность"
|
||||
@@ -339,10 +339,10 @@ metadata/um = "um_10"
|
||||
|
||||
[node name="um1535_A15" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 432.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 527.0
|
||||
offset_left = 47.0
|
||||
offset_top = 286.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 381.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A15"
|
||||
value0_info = "Мощность"
|
||||
@@ -351,10 +351,10 @@ metadata/um = "um_11"
|
||||
|
||||
[node name="um1535_A16" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 527.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 622.0
|
||||
offset_left = 47.0
|
||||
offset_top = 381.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 476.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A16"
|
||||
value0_info = "Мощность"
|
||||
@@ -363,10 +363,10 @@ metadata/um = "um_12"
|
||||
|
||||
[node name="um1535_A17" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 622.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 717.0
|
||||
offset_left = 47.0
|
||||
offset_top = 476.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 571.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A17"
|
||||
value0_info = "Мощность"
|
||||
@@ -375,37 +375,46 @@ metadata/um = "um_13"
|
||||
|
||||
[node name="um1535_A18" parent="." groups=["power_amplifier"] instance=ExtResource("8_4e87c")]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 717.0
|
||||
offset_right = 175.0
|
||||
offset_bottom = 812.0
|
||||
offset_left = 47.0
|
||||
offset_top = 571.0
|
||||
offset_right = 214.0
|
||||
offset_bottom = 666.0
|
||||
fname = "УМ1535А"
|
||||
rname = "A18"
|
||||
value0_info = "Мощность"
|
||||
value1_info = "Температура,°C"
|
||||
metadata/um = "um_14"
|
||||
|
||||
[node name="control_result" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 9.0
|
||||
offset_top = 960.0
|
||||
offset_right = 649.0
|
||||
offset_bottom = 1003.0
|
||||
horizontal_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="input_0" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(457, 586)
|
||||
position = Vector2(496, 440)
|
||||
sprite_frames = SubResource("SpriteFrames_s5gcy")
|
||||
|
||||
[node name="input_1" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(209, 586)
|
||||
position = Vector2(248, 440)
|
||||
sprite_frames = SubResource("SpriteFrames_s5gcy")
|
||||
|
||||
[node name="output_0" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(457, 482)
|
||||
position = Vector2(496, 336)
|
||||
sprite_frames = SubResource("SpriteFrames_s5gcy")
|
||||
|
||||
[node name="output_1" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(209, 482)
|
||||
position = Vector2(248, 336)
|
||||
sprite_frames = SubResource("SpriteFrames_s5gcy")
|
||||
|
||||
[node name="line" type="Line2D" parent="."]
|
||||
position = Vector2(59, 920)
|
||||
scale = Vector2(1.03548, 1)
|
||||
points = PackedVector2Array(-8, 0, 61.8069, 0, 608, 0)
|
||||
width = 2.0
|
||||
default_color = Color(1, 1, 1, 0.352941)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="control_result" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 49.0
|
||||
offset_top = 993.0
|
||||
offset_right = 689.0
|
||||
offset_bottom = 1036.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
horizontal_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
@@ -100,7 +100,7 @@ func status_uf() -> void:
|
||||
$lbl_header2.text = 'Прибор исправен'
|
||||
$lbl_header2.modulate = Color.GREEN
|
||||
else:
|
||||
$lbl_header2.text = 'Прибор не исправен'
|
||||
$lbl_header2.text = 'Прибор неисправен'
|
||||
$lbl_header2.modulate = Color.RED
|
||||
$lbl_header2.visible = true
|
||||
|
||||
|
||||
@@ -7,14 +7,16 @@
|
||||
[node name="pribor_uf" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_left = -121.0
|
||||
offset_right = -121.0
|
||||
script = ExtResource("1_7gtpa")
|
||||
|
||||
[node name="ref_uf" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 187.0
|
||||
offset_top = 247.0
|
||||
offset_right = 708.0
|
||||
offset_bottom = 955.0
|
||||
offset_left = 244.0
|
||||
offset_top = 128.0
|
||||
offset_right = 765.0
|
||||
offset_bottom = 836.0
|
||||
texture = ExtResource("2_ho0da")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -142,19 +144,25 @@ offset_bottom = 35.0
|
||||
text = "Кассета В-13"
|
||||
|
||||
[node name="lbl_header2" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 199.0
|
||||
offset_top = 974.0
|
||||
offset_right = 704.0
|
||||
offset_bottom = 1000.0
|
||||
offset_left = 252.0
|
||||
offset_top = 1009.0
|
||||
offset_right = 757.0
|
||||
offset_bottom = 1064.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Прибор не исправен
|
||||
"
|
||||
text = "Состояние неизвестно..."
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="timer" type="Timer" parent="."]
|
||||
autostart = true
|
||||
|
||||
[node name="line" type="Line2D" parent="."]
|
||||
position = Vector2(195, 950)
|
||||
scale = Vector2(1.03548, 1)
|
||||
points = PackedVector2Array(-8, 0, 61.8069, 0, 608, 0)
|
||||
width = 2.0
|
||||
default_color = Color(1, 1, 1, 0.352941)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[connection signal="timeout" from="timer" to="." method="on_timer" binds= [&"уарэп-эмс"]]
|
||||
|
||||
@@ -17,10 +17,10 @@ script = ExtResource("1_46rp6")
|
||||
|
||||
[node name="ref_G1" type="NinePatchRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 70.0
|
||||
offset_top = 303.0
|
||||
offset_right = 660.0
|
||||
offset_bottom = 1085.0
|
||||
offset_left = 88.0
|
||||
offset_top = 128.0
|
||||
offset_right = 678.0
|
||||
offset_bottom = 910.0
|
||||
texture = ExtResource("1_6olof")
|
||||
patch_margin_left = 16
|
||||
patch_margin_top = 16
|
||||
@@ -29,10 +29,10 @@ patch_margin_bottom = 16
|
||||
|
||||
[node name="spt25_A1" parent="." instance=ExtResource("6_60xs3")]
|
||||
layout_mode = 0
|
||||
offset_left = 88.0
|
||||
offset_top = 319.0
|
||||
offset_right = 343.0
|
||||
offset_bottom = 749.0
|
||||
offset_left = 106.0
|
||||
offset_top = 144.0
|
||||
offset_right = 361.0
|
||||
offset_bottom = 574.0
|
||||
tooltip_text = "Ящик - 11, Позиция - 3"
|
||||
script = ExtResource("4_v0lil")
|
||||
unit_name = "уарэп-спт25-1"
|
||||
@@ -64,10 +64,10 @@ offset_bottom = 417.0
|
||||
|
||||
[node name="spt25_A2" parent="." instance=ExtResource("6_60xs3")]
|
||||
layout_mode = 0
|
||||
offset_left = 392.0
|
||||
offset_top = 320.0
|
||||
offset_right = 642.0
|
||||
offset_bottom = 750.0
|
||||
offset_left = 410.0
|
||||
offset_top = 145.0
|
||||
offset_right = 660.0
|
||||
offset_bottom = 575.0
|
||||
tooltip_text = "Ящик - 11, Позиция - 2"
|
||||
script = ExtResource("4_v0lil")
|
||||
unit_name = "уарэп-спт25-2"
|
||||
@@ -98,10 +98,10 @@ offset_right = 235.0
|
||||
offset_bottom = 417.0
|
||||
|
||||
[node name="sch3" parent="." instance=ExtResource("7_qu7ja")]
|
||||
offset_left = 88.0
|
||||
offset_top = 774.0
|
||||
offset_right = 643.0
|
||||
offset_bottom = 1059.0
|
||||
offset_left = 106.0
|
||||
offset_top = 599.0
|
||||
offset_right = 661.0
|
||||
offset_bottom = 884.0
|
||||
unit_name = "уарэп-щ3"
|
||||
fname = "Щ3 (контроль и управление питанием)"
|
||||
rname = "A1"
|
||||
|
||||
@@ -191,9 +191,9 @@ metadata/_edit_lock_ = true
|
||||
editor_description = "Кнопка для отображения внешних соединений."
|
||||
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 959.0
|
||||
offset_left = 945.0
|
||||
offset_top = 1021.0
|
||||
offset_right = 1215.0
|
||||
offset_right = 1201.0
|
||||
offset_bottom = 1277.0
|
||||
scale = Vector2(0.25, 0.25)
|
||||
size_flags_horizontal = 15
|
||||
@@ -225,9 +225,9 @@ script = ExtResource("11_u7tym")
|
||||
editor_description = "Кнопка для отображения внешних соединений."
|
||||
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 1088.0
|
||||
offset_left = 1074.0
|
||||
offset_top = 1021.0
|
||||
offset_right = 1344.0
|
||||
offset_right = 1330.0
|
||||
offset_bottom = 1277.0
|
||||
scale = Vector2(0.25, 0.25)
|
||||
size_flags_horizontal = 15
|
||||
@@ -260,9 +260,9 @@ script = ExtResource("11_u7tym")
|
||||
editor_description = "Кнопка для отображения внешних соединений."
|
||||
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 1216.0
|
||||
offset_left = 1202.0
|
||||
offset_top = 1021.0
|
||||
offset_right = 1472.0
|
||||
offset_right = 1458.0
|
||||
offset_bottom = 1277.0
|
||||
scale = Vector2(0.25, 0.25)
|
||||
size_flags_horizontal = 15
|
||||
@@ -295,9 +295,9 @@ script = ExtResource("11_u7tym")
|
||||
editor_description = "Кнопка для отображения внешних соединений."
|
||||
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 1344.0
|
||||
offset_left = 1330.0
|
||||
offset_top = 1021.0
|
||||
offset_right = 1600.0
|
||||
offset_right = 1586.0
|
||||
offset_bottom = 1277.0
|
||||
scale = Vector2(0.25, 0.25)
|
||||
size_flags_horizontal = 15
|
||||
@@ -330,9 +330,9 @@ script = ExtResource("11_u7tym")
|
||||
editor_description = "Кнопка для отображения внешних соединений."
|
||||
self_modulate = Color(0.788235, 0.788235, 0.788235, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 1472.0
|
||||
offset_left = 1458.0
|
||||
offset_top = 1021.0
|
||||
offset_right = 1728.0
|
||||
offset_right = 1714.0
|
||||
offset_bottom = 1277.0
|
||||
scale = Vector2(0.25, 0.25)
|
||||
size_flags_horizontal = 15
|
||||
@@ -1561,9 +1561,9 @@ tint_progress = Color(0.890196, 0.486275, 0.196078, 1)
|
||||
|
||||
[node name="txr_legend0" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 219.0
|
||||
offset_left = 316.0
|
||||
offset_top = 1141.0
|
||||
offset_right = 443.0
|
||||
offset_right = 540.0
|
||||
offset_bottom = 1365.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("7_6j01w")
|
||||
@@ -1571,9 +1571,9 @@ texture = ExtResource("7_6j01w")
|
||||
[node name="lbl_legend0" type="Label" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 247.0
|
||||
offset_left = 344.0
|
||||
offset_top = 1142.0
|
||||
offset_right = 403.0
|
||||
offset_right = 500.0
|
||||
offset_bottom = 1162.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "Ожидание результата"
|
||||
@@ -1581,27 +1581,27 @@ text = "Ожидание результата"
|
||||
[node name="lbl_legend1" type="Label" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 52.0
|
||||
offset_left = 149.0
|
||||
offset_top = 1142.0
|
||||
offset_right = 125.0
|
||||
offset_right = 222.0
|
||||
offset_bottom = 1162.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "Исправно"
|
||||
|
||||
[node name="txr_legend1" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 26.0001
|
||||
offset_left = 123.0
|
||||
offset_top = 1141.0
|
||||
offset_right = 250.0
|
||||
offset_right = 347.0
|
||||
offset_bottom = 1365.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("8_isjua")
|
||||
|
||||
[node name="txr_legend2" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 476.0
|
||||
offset_left = 573.0
|
||||
offset_top = 1141.0
|
||||
offset_right = 700.0
|
||||
offset_right = 797.0
|
||||
offset_bottom = 1365.0
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("9_ll0vs")
|
||||
@@ -1609,18 +1609,18 @@ texture = ExtResource("9_ll0vs")
|
||||
[node name="lbl_legend2" type="Label" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.627451)
|
||||
layout_mode = 0
|
||||
offset_left = 504.0
|
||||
offset_left = 601.0
|
||||
offset_top = 1142.0
|
||||
offset_right = 548.0
|
||||
offset_right = 645.0
|
||||
offset_bottom = 1162.0
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "Сбой"
|
||||
|
||||
[node name="lbl_header" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 78.0
|
||||
offset_left = 88.0
|
||||
offset_top = 27.0
|
||||
offset_right = 656.0
|
||||
offset_right = 666.0
|
||||
offset_bottom = 58.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Контроль исправности прибора"
|
||||
@@ -1663,19 +1663,20 @@ text = "На связи"
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="line0" type="Line2D" parent="."]
|
||||
position = Vector2(936, 950)
|
||||
points = PackedVector2Array(-8, 0, 608, 0)
|
||||
position = Vector2(929, 950)
|
||||
points = PackedVector2Array(-8, 0, 582.16, 0, 608, 0)
|
||||
width = 2.0
|
||||
default_color = Color(1, 1, 1, 0.352941)
|
||||
|
||||
[node name="line1" type="Line2D" parent="."]
|
||||
position = Vector2(936, 1128)
|
||||
position = Vector2(929, 1128)
|
||||
points = PackedVector2Array(-8, 0, 608, 0)
|
||||
width = 2.0
|
||||
default_color = Color(1, 1, 1, 0.352941)
|
||||
|
||||
[node name="line2" type="Line2D" parent="."]
|
||||
position = Vector2(32, 1128)
|
||||
position = Vector2(73.3548, 1127)
|
||||
scale = Vector2(1.03548, 1)
|
||||
points = PackedVector2Array(-8, 0, 608, 0)
|
||||
width = 2.0
|
||||
default_color = Color(1, 1, 1, 0.352941)
|
||||
|
||||
@@ -32,6 +32,14 @@ enum STATE_MACHINE {
|
||||
STOP_CONTROL,
|
||||
AWAIT
|
||||
}
|
||||
var ems_g_sock_dic: Dictionary = {
|
||||
'ems_input_1': 0,
|
||||
'ems_input_2': 0,
|
||||
'ems_input_lit_1': 0,
|
||||
'ems_output_1': 0,
|
||||
'ems_output_2': 0,
|
||||
'ems_output_lit_1': 0,
|
||||
}
|
||||
|
||||
# Загруженные конфигурации
|
||||
var config_data: Dictionary
|
||||
@@ -54,6 +62,8 @@ var block_kasseta_y5_config: Dictionary
|
||||
var temperature_um: Dictionary
|
||||
var control_results: Dictionary
|
||||
var power_result: Dictionary
|
||||
var ecms: Dictionary
|
||||
var power_for_litera: Dictionary
|
||||
var self_name: String
|
||||
var state: int = STATE_MACHINE.INIT
|
||||
var current_litera: int
|
||||
@@ -80,9 +90,6 @@ var progress_value: float:
|
||||
progress_value = v
|
||||
call_deferred('emit_signal', 'update_progress', v)
|
||||
|
||||
var ecms: Dictionary
|
||||
var power_for_litera: Dictionary
|
||||
|
||||
|
||||
## Инициализация аргуметнов
|
||||
func _init(init_data: Dictionary, cmd_array_from_prd: Array) -> void:
|
||||
@@ -140,9 +147,9 @@ func _load_configuration() -> void:
|
||||
config_data = json.data
|
||||
_parse_config_data()
|
||||
else:
|
||||
push_error("Failed to parse JSON config: " + json.get_error_message())
|
||||
push_error("Ошибка разбора JSON конфигурации: " + json.get_error_message())
|
||||
else:
|
||||
push_error("Failed to load config file: " + CONFIG_PATH)
|
||||
push_error("Ошибка to load config file: " + CONFIG_PATH)
|
||||
|
||||
|
||||
func _parse_config_data() -> void:
|
||||
@@ -211,33 +218,26 @@ func on_data_received(unit_pribor: Object) -> void:
|
||||
power_for_litera[current_litera] = tek_litera
|
||||
|
||||
|
||||
var ems_input_1: int
|
||||
var ems_input_2: int
|
||||
var ems_input_lit_1: int
|
||||
var ems_output_1: int
|
||||
var ems_output_2: int
|
||||
var ems_output_lit_1: int
|
||||
|
||||
# Методы для работы с DataIndices из JSON
|
||||
# Методы для работы с JSON
|
||||
func _get_data_index(key: String) -> int:
|
||||
return data_indices.get(key, -1)
|
||||
|
||||
|
||||
func socket_status_ems_g(packet_form_yau_07: PackedByteArray) -> void:
|
||||
if self_name in ['1н', '2н', '3н', '4н']:
|
||||
ems_input_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 9)) != 0
|
||||
ems_input_2 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 10)) != 0
|
||||
ems_g_sock_dic.ems_input_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 9)) != 0
|
||||
ems_g_sock_dic.ems_input_2 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 10)) != 0
|
||||
if self_name in ['1в', '2в', '3в', '4в']:
|
||||
ems_input_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 11)) != 0
|
||||
ems_input_2 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 12)) != 0
|
||||
ems_g_sock_dic.ems_input_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 11)) != 0
|
||||
ems_g_sock_dic.ems_input_2 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 12)) != 0
|
||||
if self_name in ['1к', '2к', '3к', '4к']:
|
||||
ems_input_lit_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 8)) != 0
|
||||
ems_input_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 13)) != 0
|
||||
ems_input_2 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 14)) != 0
|
||||
ems_g_sock_dic.ems_input_lit_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 8)) != 0
|
||||
ems_g_sock_dic.ems_input_1 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 13)) != 0
|
||||
ems_g_sock_dic.ems_input_2 = (packet_form_yau_07.decode_u16(_get_data_index('IN_BLANK_PRD')) & (1 << 14)) != 0
|
||||
|
||||
ems_output_1 = (packet_form_yau_07.decode_u16(_get_data_index('OUT_BLANK_PRD')) & (1 << 4)) != 0
|
||||
ems_output_2 = (packet_form_yau_07.decode_u16(_get_data_index('OUT_BLANK_PRD')) & (1 << 5)) != 0
|
||||
ems_output_lit_1 = (packet_form_yau_07.decode_u16(_get_data_index('OUT_BLANK_PRD')) & (1 << 3)) != 0
|
||||
ems_g_sock_dic.ems_output_1 = (packet_form_yau_07.decode_u16(_get_data_index('OUT_BLANK_PRD')) & (1 << 4)) != 0
|
||||
ems_g_sock_dic.ems_output_2 = (packet_form_yau_07.decode_u16(_get_data_index('OUT_BLANK_PRD')) & (1 << 5)) != 0
|
||||
ems_g_sock_dic.ems_output_lit_1 = (packet_form_yau_07.decode_u16(_get_data_index('OUT_BLANK_PRD')) & (1 << 3)) != 0
|
||||
|
||||
var number_socket_input: int
|
||||
if current_litera >= 1 and current_litera <= 7:
|
||||
@@ -389,15 +389,16 @@ func _handle_fs_turn_on_state() -> void:
|
||||
##'Выполняется проверка ФС-%s' % current_litera
|
||||
func _handle_fs_work_state() -> void:
|
||||
if (current_litera == 2 and control_results.fs_2) or \
|
||||
(current_litera == 3 and control_results.fs_3) or \
|
||||
(current_litera == 4 and control_results.fs_4) or \
|
||||
(current_litera == 5 and control_results.fs_5) or \
|
||||
(current_litera == 6 and control_results.fs_6) or \
|
||||
(current_litera == 7 and control_results.fs_7) or \
|
||||
(current_litera == 1 and control_results.fs_1):
|
||||
(current_litera == 3 and control_results.fs_3) or \
|
||||
(current_litera == 4 and control_results.fs_4) or \
|
||||
(current_litera == 5 and control_results.fs_5) or \
|
||||
(current_litera == 6 and control_results.fs_6) or \
|
||||
(current_litera == 7 and control_results.fs_7) or \
|
||||
(current_litera == 1 and control_results.fs_1):
|
||||
state = STATE_MACHINE.CHEK_KASSETA_Y5
|
||||
|
||||
|
||||
## Подготовка к настройки и записи в УГ
|
||||
func _handle_ug_set_state(RAY_DOU_NUM: int) -> void:
|
||||
var dic_att := {
|
||||
'RAY_DOU_NUM': RAY_DOU_NUM,
|
||||
@@ -420,16 +421,7 @@ func _handle_ug_set_state(RAY_DOU_NUM: int) -> void:
|
||||
flag_write_isa = on_ug_setting(unit_prd, dic_att, cmd_array)
|
||||
|
||||
|
||||
## Таймер отправки команды в ЭМС-Г для модуляции
|
||||
func _on_ems_6666_timer() -> void:
|
||||
cmd_array.append([unit_prd.CmdCode.WRITE_ISA, [constants.BASE_ADDR_EMS_G, 6666]])
|
||||
|
||||
|
||||
## Таймер вызова машины состояний
|
||||
func on_state_mashine():
|
||||
state_control_machine()
|
||||
|
||||
|
||||
## Функция для продвижения статуса прогресс бара
|
||||
func progressbar_status() -> void:
|
||||
match state:
|
||||
STATE_MACHINE.INIT:
|
||||
@@ -452,6 +444,7 @@ func _handle_stop_control_state() -> void:
|
||||
state = STATE_MACHINE.INIT
|
||||
|
||||
|
||||
## Переходит на следующую литеру, если 0 то считай закончил выполнения контроля
|
||||
func _advance_to_next_fs() -> void:
|
||||
match current_litera:
|
||||
1: current_litera = 6
|
||||
@@ -536,6 +529,7 @@ func _get_device_type() -> String:
|
||||
return ''
|
||||
|
||||
|
||||
## Настройка таймеров
|
||||
func setup_timer() -> void:
|
||||
add_child(control_timer)
|
||||
control_timer.timeout.connect(on_stop_control)
|
||||
@@ -550,6 +544,23 @@ func setup_timer() -> void:
|
||||
machine_timer.connect('timeout', Callable(self, 'on_state_mashine'))
|
||||
|
||||
|
||||
## Таймер отправки команды в ЭМС-Г для модуляции
|
||||
func _on_ems_6666_timer() -> void:
|
||||
cmd_array.append([unit_prd.CmdCode.WRITE_ISA, [constants.BASE_ADDR_EMS_G, 6666]])
|
||||
|
||||
|
||||
## Таймер вызова машины состояний
|
||||
func on_state_mashine():
|
||||
state_control_machine()
|
||||
|
||||
|
||||
## При таймауте таймера ожидания выполнения команды и перехода на следующий шаг машины состояний
|
||||
func on_stop_control() -> void:
|
||||
_handle_fs_turn_off_state()
|
||||
state = STATE_MACHINE.FS_TURN_OFF
|
||||
|
||||
|
||||
## Срабатывает при выходе или входе в режим контроль
|
||||
func on_mode_changed(in_tree: bool) -> void:
|
||||
flag_in_control = in_tree
|
||||
if not in_tree: ## TODO: Дополнительная проверка если контроль идет, если нет, то смысла вызывать нет
|
||||
@@ -562,7 +573,7 @@ func on_mode_changed(in_tree: bool) -> void:
|
||||
|
||||
|
||||
func _process_dkm_status(status: PackedByteArray) -> void:
|
||||
if not control_results.has(_get_current_fs_key()):
|
||||
if not control_results.has(_get_current_fs_key(current_litera, fs_keys)):
|
||||
return
|
||||
var dkm_bit = _get_dkm_bit_for_current_fs(current_litera, constants)
|
||||
if dkm_bit == 0:
|
||||
@@ -589,10 +600,11 @@ func _process_dkm_status(status: PackedByteArray) -> void:
|
||||
control_results['dkm_7'] = check_dkm(status, dkm_bit)
|
||||
|
||||
|
||||
func _get_current_fs_key() -> String:
|
||||
return fs_keys.get(str(current_litera), '')
|
||||
static func _get_current_fs_key(litera: int, fs_keys_dic: Dictionary) -> String:
|
||||
return fs_keys_dic.get(str(litera), '')
|
||||
|
||||
|
||||
## Возвращает бит ДКМ для проверки текущей литеры
|
||||
static func _get_dkm_bit_for_current_fs(litera: int, constants_dic: Dictionary) -> int:
|
||||
match litera:
|
||||
1: return constants_dic.DKM_BIT_1
|
||||
@@ -605,14 +617,9 @@ static func _get_dkm_bit_for_current_fs(litera: int, constants_dic: Dictionary)
|
||||
_: return -1
|
||||
|
||||
|
||||
func on_stop_control() -> void:
|
||||
_handle_fs_turn_off_state()
|
||||
state = STATE_MACHINE.FS_TURN_OFF
|
||||
|
||||
|
||||
## Итоговое заключение по результам контроля всех ИП
|
||||
static func on_control_result(ip_config: Dictionary, ctrl_results: Dictionary) -> Dictionary:
|
||||
var all_blocks_ip_ok = true
|
||||
|
||||
for block in ip_config:
|
||||
if not ip_config[block][1]:
|
||||
all_blocks_ip_ok = false
|
||||
@@ -624,10 +631,10 @@ static func on_control_result(ip_config: Dictionary, ctrl_results: Dictionary) -
|
||||
static func on_ug_setting(prd_unit: Object, settings_ug: Dictionary, prd_cmd_array: Array) -> bool:
|
||||
var result_1 = ((settings_ug.ATT_UM_1 & 0x07) << 3) | (settings_ug.RAY_DOU_NUM & 0x07)
|
||||
var result_2 = ((settings_ug.ATT_UM_2 & 0x07) << 3) | (settings_ug.RAY_DOU_NUM & 0x07)
|
||||
prd_cmd_array.append([prd_unit.CmdCode.WRITE_ISA, [ settings_ug.ADDR_UG_LITERA_1, result_1,
|
||||
settings_ug.ADDR_UG_LITERA_2, result_2,
|
||||
settings_ug.ADDR_UG_LITERA_3, settings_ug.ATT_UM_3,
|
||||
]
|
||||
prd_cmd_array.append([prd_unit.CmdCode.WRITE_ISA, [ settings_ug.ADDR_UG_LITERA_1, result_1,
|
||||
settings_ug.ADDR_UG_LITERA_2, result_2,
|
||||
settings_ug.ADDR_UG_LITERA_3, settings_ug.ATT_UM_3,
|
||||
]
|
||||
])
|
||||
return true
|
||||
|
||||
@@ -655,7 +662,7 @@ static func manage_fs(mode: bool, pribor: String, p_conf: Dictionary, fs_params:
|
||||
params.width,
|
||||
sectors[litera - 1] if litera == 1 else sectors[litera - 5] if litera > 5 else sectors[litera - 4] if litera > 3 else sectors[litera - 2]
|
||||
])
|
||||
#signaller.emit_signal('emit_changed', mode)
|
||||
#signaller.emit_signal('emit_changed', mode) TODO: не отключаю подавление (даже если при входе в контроль он был отключен)
|
||||
signaller.emit_signal('interfer_init', interfer_name, fs_arr, power_um)
|
||||
|
||||
|
||||
@@ -696,7 +703,6 @@ static func check_temperature_um(status_prd: PackedByteArray) -> Dictionary:
|
||||
var return_dic_temp: Dictionary
|
||||
var ukp1_online: int = (status_prd[0] >> 2) & 1
|
||||
var ukp2_online = (status_prd[0] >> 3) & 1
|
||||
|
||||
if ukp1_online:
|
||||
var tmp_1: int
|
||||
var temperature_ukp_1: int
|
||||
@@ -704,14 +710,11 @@ static func check_temperature_um(status_prd: PackedByteArray) -> Dictionary:
|
||||
temperature_ukp_1 = status_prd.decode_u16(Constants.TEMPERATURE_UKP_1 + 2 * i_temp)
|
||||
tmp_1 = round(Constants.CONST_MIN_TEMP + (Constants.MAXIMUM_CODE_ADC - temperature_ukp_1) * TEMP + 3)
|
||||
return_dic_temp[arr_um[i_temp]] = tmp_1
|
||||
|
||||
|
||||
if ukp2_online:
|
||||
for i_temp in 8:
|
||||
var temperature_ukp_2: int = status_prd.decode_u16(Constants.TEMPERATURE_UKP_2 + 2 * i_temp)
|
||||
var tmp_2: int = round(Constants.CONST_MIN_TEMP + (Constants.MAXIMUM_CODE_ADC - temperature_ukp_2) * TEMP + 3)
|
||||
return_dic_temp[arr_um[i_temp+8]] = tmp_2
|
||||
|
||||
return return_dic_temp
|
||||
|
||||
|
||||
@@ -722,7 +725,7 @@ static func check_dkm(status_prd: PackedByteArray, bit_dkm: int) -> bool:
|
||||
return status_dkm
|
||||
|
||||
|
||||
##
|
||||
## Распределения номеров ФС по пирборам
|
||||
static func _create_fs_mapping(s_name: String) -> Dictionary:
|
||||
var suffixes: Dictionary = {
|
||||
0: '1к', 1: '4к', 2: '3к', 3: '2к',
|
||||
@@ -740,7 +743,7 @@ static func _create_fs_mapping(s_name: String) -> Dictionary:
|
||||
return mapping
|
||||
|
||||
|
||||
##
|
||||
## Получения статуса ФС
|
||||
static func on_fs_state(packet_type_7: Dictionary, fs_mapping: Dictionary, fs_results: Dictionary, fs_rules_config: Array) -> Dictionary:
|
||||
var updated_results := fs_results.duplicate()
|
||||
for fs_num in packet_type_7:
|
||||
@@ -759,7 +762,8 @@ static func _should_apply_rule(fs_num: int, rule: Dictionary, results: Dictionar
|
||||
return bool(fs_num >= rule.min and fs_num < rule.max) and results.has(rule.key)
|
||||
|
||||
|
||||
##
|
||||
|
||||
## Получение мощности при выполнении контроля
|
||||
static func power_um_ukp(status: PackedByteArray, litera: int, pwr_result: Array) -> Array:
|
||||
const Constants: Dictionary = {'POWER_UKP_1' : 31, 'POWER_UKP_2': 63}
|
||||
var power_values: Array = []
|
||||
@@ -833,34 +837,7 @@ static func update_max_power_values(power_data: Array, max_power_values: Array)
|
||||
return max_power_values.duplicate()
|
||||
|
||||
|
||||
static func check_dou_result(control_dic: Dictionary, power_dic: Dictionary, pribor: String, litera: int, cnst: Dictionary) -> Dictionary:
|
||||
var all_dou_ok = true
|
||||
var dou: String = 'dou_2' if litera == 2 else 'dou_3'
|
||||
if pribor == '1к' or pribor == '2к' or pribor == '3к' or pribor == '4к':
|
||||
dou = 'dou_6' if litera == 6 else 'dou_7'
|
||||
elif pribor == '1в' or pribor == '2в' or pribor == '3в' or pribor == '4в':
|
||||
dou = 'dou_4' if litera == 4 else 'dou_5'
|
||||
|
||||
var ray_dic: Dictionary = power_dic[litera]
|
||||
if ray_dic[RAY_m5].size() == 0 or \
|
||||
ray_dic[RAY_5 ].size() == 0 or \
|
||||
ray_dic[RAY_15].size() == 0 or \
|
||||
ray_dic[RAY_25].size() == 0 or \
|
||||
ray_dic[RAY_35].size() == 0 or \
|
||||
ray_dic[RAY_45].size() == 0:
|
||||
control_dic[dou] = false
|
||||
return control_dic
|
||||
|
||||
for i_pow_arr in ray_dic.values():
|
||||
for i_pow in i_pow_arr.size():
|
||||
if i_pow_arr[i_pow] < cnst.POWER_THRESHOLD:
|
||||
all_dou_ok = false
|
||||
|
||||
control_dic[dou] = all_dou_ok
|
||||
|
||||
return control_dic
|
||||
|
||||
|
||||
## Подготовка принятых данных по контролю для передачи в сцену
|
||||
static func prep_power(power_dic: Dictionary, prd_name: String)-> Dictionary:
|
||||
const RAY_KEYS := ["RAY_m5", "RAY_5", "RAY_15", "RAY_25", "RAY_35", "RAY_45"]
|
||||
var prep_pow_dic: Dictionary = {}
|
||||
@@ -912,3 +889,30 @@ static func prep_power(power_dic: Dictionary, prd_name: String)-> Dictionary:
|
||||
for um_index in range(current_um_names.size()):
|
||||
prep_pow_dic[current_um_names[um_index]] = um_data[um_index]
|
||||
return prep_pow_dic
|
||||
|
||||
|
||||
static func check_dou_result(control_dic: Dictionary, power_dic: Dictionary, pribor: String, litera: int, cnst: Dictionary) -> Dictionary:
|
||||
var all_dou_ok = true
|
||||
var dou: String = 'dou_2' if litera == 2 else 'dou_3'
|
||||
if pribor == '1к' or pribor == '2к' or pribor == '3к' or pribor == '4к':
|
||||
dou = 'dou_6' if litera == 6 else 'dou_7'
|
||||
elif pribor == '1в' or pribor == '2в' or pribor == '3в' or pribor == '4в':
|
||||
dou = 'dou_4' if litera == 4 else 'dou_5'
|
||||
|
||||
var ray_dic: Dictionary = power_dic[litera]
|
||||
if ray_dic[RAY_m5].size() == 0 or \
|
||||
ray_dic[RAY_5 ].size() == 0 or \
|
||||
ray_dic[RAY_15].size() == 0 or \
|
||||
ray_dic[RAY_25].size() == 0 or \
|
||||
ray_dic[RAY_35].size() == 0 or \
|
||||
ray_dic[RAY_45].size() == 0:
|
||||
control_dic[dou] = false
|
||||
return control_dic
|
||||
|
||||
for i_pow_arr in ray_dic.values():
|
||||
for i_pow in i_pow_arr.size():
|
||||
if i_pow_arr[i_pow] < cnst.POWER_THRESHOLD:
|
||||
all_dou_ok = false
|
||||
|
||||
control_dic[dou] = all_dou_ok
|
||||
return control_dic
|
||||
|
||||
Reference in New Issue
Block a user