исправление после мерджа
This commit is contained in:
@@ -50,9 +50,9 @@ func _ready() -> void:
|
||||
node_select_yau_07b.set_node_text(0, 0, 'ПРД-Н')
|
||||
node_select_yau_07b.set_node_text(1, 0, 'Литера 2')
|
||||
node_select_yau_07b.set_node_text(0, 1, 'Запрет СИ 2')
|
||||
node_select_yau_07b.set_node_text(0, 2, 'Модуляция УМ 2')
|
||||
node_select_yau_07b.set_node_text(0, 2, 'Модуляция УМ')
|
||||
node_select_yau_07b.set_node_text(0, 3, 'Положение луча')
|
||||
node_select_yau_07b.set_node_text(0, 4, 'Аттенюатор')
|
||||
node_select_yau_07b.set_node_text(0, 4, 'Аттенюатор УМ')
|
||||
node_select_yau_07b.set_node_text(0, 6, 'СИ 2 в УФ')
|
||||
|
||||
var node_select_yau_07b_2 = $TabContainer/PRD/body_grid/litera_3_5_7/yau07b_control
|
||||
@@ -61,16 +61,16 @@ func _ready() -> void:
|
||||
node_select_yau_07b_2.set_node_text(0, 0, 'ПРД-Н')
|
||||
node_select_yau_07b_2.set_node_text(1, 0, 'Литера 3')
|
||||
node_select_yau_07b_2.set_node_text(0, 1, 'Запрет СИ 3')
|
||||
node_select_yau_07b_2.set_node_text(0, 2, 'Модуляция УМ 3')
|
||||
node_select_yau_07b_2.set_node_text(0, 2, 'Модуляция УМ')
|
||||
node_select_yau_07b_2.set_node_text(0, 3, 'Положение луча')
|
||||
node_select_yau_07b_2.set_node_text(0, 4, 'Аттенюатор')
|
||||
node_select_yau_07b_2.set_node_text(0, 4, 'Аттенюатор УМ')
|
||||
node_select_yau_07b_2.set_node_text(0, 5, 'ФГОЗ 3')
|
||||
node_select_yau_07b_2.set_node_text(0, 6, 'СИ 3 в УФ')
|
||||
|
||||
#Таблица ФС
|
||||
var node_select_fs_1 = $TabContainer/PRD/body_grid/litera_2_4_6/fs_control
|
||||
draw_tabl(node_select_fs_1, Constants.ROWS_FS, Constants.ROWS_FS.size())
|
||||
node_select_fs_1.set_columns_min_size([120, 120, 150])
|
||||
node_select_fs_1.set_columns_min_size([150, 120, 150])
|
||||
node_select_fs_1.set_node_text(0, 0, 'Модуль ФС')
|
||||
node_select_fs_1.set_node_text(1, 0, 'Литера 2')
|
||||
node_select_fs_1.set_node_text(0, 1, 'Состояние')
|
||||
@@ -80,7 +80,7 @@ func _ready() -> void:
|
||||
node_select_fs_1.set_node_text(0, 3, 'Аттенюатор')
|
||||
node_select_fs_1.get_node2(1, 3).placeholder_text = 'в dB'
|
||||
node_select_fs_1.get_node2(1, 3).editable = true
|
||||
node_select_fs_1.set_node_text(0, 4, 'Генератор')
|
||||
node_select_fs_1.set_node_text(0, 4, 'Генератор ФС')
|
||||
node_select_fs_1.set_node_text(0, 5, 'fpga')
|
||||
node_select_fs_1.set_node_text(0, 6, 'СИ 2 от ФС')
|
||||
node_select_fs_1.set_node_text(0, 7, 'Фильтр CAN')
|
||||
@@ -89,17 +89,17 @@ func _ready() -> void:
|
||||
|
||||
var node_select_fs_2 = $TabContainer/PRD/body_grid/litera_3_5_7/fs_control
|
||||
draw_tabl(node_select_fs_2, Constants.ROWS_FS, Constants.ROWS_FS.size())
|
||||
node_select_fs_2.set_columns_min_size([120, 120, 150])
|
||||
node_select_fs_2.set_columns_min_size([150, 120, 150])
|
||||
node_select_fs_2.set_node_text(0, 0, 'Модуль ФС')
|
||||
node_select_fs_2.set_node_text(1, 0, 'Литера 3')
|
||||
node_select_fs_2.set_node_text(0, 1, 'Состояние')
|
||||
node_select_fs_2.set_node_text(0, 2, 'Частота')
|
||||
node_select_fs_2.set_node_text(0, 2, 'Частота ФС')
|
||||
node_select_fs_2.get_node2(1, 2).placeholder_text = 'в МГц'
|
||||
node_select_fs_2.get_node2(1, 2).editable = true
|
||||
node_select_fs_2.set_node_text(0, 3, 'Аттенюатор')
|
||||
node_select_fs_2.set_node_text(0, 3, 'Аттенюатор ФС')
|
||||
node_select_fs_2.get_node2(1, 3).placeholder_text = 'в dB'
|
||||
node_select_fs_2.get_node2(1, 3).editable = true
|
||||
node_select_fs_2.set_node_text(0, 4, 'Генератор')
|
||||
node_select_fs_2.set_node_text(0, 4, 'Генератор ФС')
|
||||
node_select_fs_2.set_node_text(0, 5, 'fpga')
|
||||
node_select_fs_2.set_node_text(0, 6, 'СИ 3 от ФС')
|
||||
node_select_fs_2.set_node_text(0, 7, 'Фильтр CAN')
|
||||
@@ -139,7 +139,7 @@ func _ready() -> void:
|
||||
for key in Constants.ATT_DICT:
|
||||
node_select_yau_07b.get_node2(1, 4).add_item(key)
|
||||
node_select_yau_07b_2.get_node2(1, 4).add_item(key)
|
||||
|
||||
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+2, 48)
|
||||
Network.read_port_isa([Constants.BASE_PORTS.EMS_G+8])
|
||||
Network.write_port_isa(Constants.BASE_PORTS.EMS_G+2, 49)
|
||||
@@ -177,11 +177,16 @@ func _ready() -> void:
|
||||
node_select_fs_1.get_node2(1, 2).connect('text_submitted', Callable(self, '_on_set_ferq_1'))
|
||||
node_select_fs_1.get_node2(1, 3).connect('text_submitted', Callable(self, '_on_set_att_1'))
|
||||
node_select_fs_1.get_node2(1, 7).connect('text_submitted', Callable(self, '_on_set_base_can_macro'))
|
||||
node_select_fs_1.get_node2(1, 8).get_child(1, false).connect('toggled', Callable(self, '_on_status_can_macro_1'))
|
||||
## FS 2
|
||||
node_select_fs_2.get_node2(1, 4).get_child(1, false).connect('toggled', Callable(self, '_on_get_status_2'))
|
||||
node_select_fs_2.get_node2(1, 2).connect('text_submitted', Callable(self, '_on_set_ferq_2'))
|
||||
node_select_fs_2.get_node2(1, 3).connect('text_submitted', Callable(self, '_on_set_att_2'))
|
||||
node_select_fs_2.get_node2(1, 7).connect('text_submitted', Callable(self, '_on_set_base_can_macro_2'))
|
||||
node_select_fs_2.get_node2(1, 8).get_child(1, false).connect('toggled', Callable(self, '_on_status_can_macro_2'))
|
||||
|
||||
Network.connect_fs_1()
|
||||
Network.connect_fs_2()
|
||||
|
||||
|
||||
func on_device_selected(selected_index: int) -> void:
|
||||
@@ -267,7 +272,7 @@ func _on_data_fs_1(fs_1_data):
|
||||
node_select_fs_1.set_node_text(2, 2, str(fs_1_data.decode_u64(0xC) / 1_000_000) + ' МГц')
|
||||
Constants.CMD.READ_ATT:
|
||||
if GRP == Constants.GROUP.RF:
|
||||
node_select_fs_1.set_node_text(2, 3, '-' + str(fs_1_data.decode_float(0x14)) + ' dB')
|
||||
node_select_fs_1.set_node_text(2, 3, '-' + str(fs_1_data.decode_float(0x18)) + ' dB')
|
||||
Constants.CMD.READ_GEN_STATUS:
|
||||
if GRP == Constants.GROUP.GENERATOR:
|
||||
if fs_1_data.decode_u32(0xC) == 0:
|
||||
@@ -603,6 +608,10 @@ func _on_set_base_can_macro(can_freq: String):
|
||||
Network.set_can_macro(int(can_freq))
|
||||
|
||||
|
||||
func _on_status_can_macro_1(toggled_btn: bool):
|
||||
Network.status_can_macro_1(toggled_btn)
|
||||
|
||||
|
||||
## 2 ФС
|
||||
func _on_port_changed_fs_2(port_name: String, color: Color) -> void:
|
||||
$TabContainer/PRD/body_grid/litera_3_5_7/fs_control.set_node_text(1, 1, port_name)
|
||||
@@ -628,3 +637,7 @@ func _on_set_att_2(att: String):
|
||||
|
||||
func _on_set_base_can_macro_2(can_freq: String):
|
||||
Network.set_can_macro_2(int(can_freq))
|
||||
|
||||
|
||||
func _on_status_can_macro_2(toggled_btn: bool):
|
||||
Network.status_can_macro_2(toggled_btn)
|
||||
|
||||
Reference in New Issue
Block a user