full sync ems g
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
extends Node2D
|
||||
|
||||
signal read_ems_g()
|
||||
signal read_ems_g_start()
|
||||
signal read_ems_g_finish()
|
||||
#var unit = Yau07.YaU07.new('ЯУ07')
|
||||
var flag_mode = Constants.ADDRESSES[0][3]
|
||||
var broadcast_packet: PackedByteArray
|
||||
@@ -86,6 +87,8 @@ func _on_read_isa(unit_isa_ports):
|
||||
break
|
||||
if not found:
|
||||
Constants.EMS_G_PORT_DATA_HOLDER.append([tmp, isa_data])
|
||||
if len(Constants.EMS_G_PORT_DATA_HOLDER) == 32:
|
||||
emit_signal('read_ems_g_finish')
|
||||
$ISA.text = 'ISA: ' + str(len(Constants.EMS_G_PORT_DATA_HOLDER))
|
||||
|
||||
|
||||
@@ -218,21 +221,21 @@ func set_frame(node: Node, val: int): node.set_frame(val)
|
||||
|
||||
|
||||
func _on_prd_select() -> void:
|
||||
$TabContainer.current_tab = 1
|
||||
$TabContainer.current_tab = 0
|
||||
$Background/side_panel/select_prd.button_pressed = true
|
||||
$Background/side_panel/select_control.button_pressed = false
|
||||
$Background/side_panel/select_ems_g.button_pressed = false
|
||||
|
||||
|
||||
func _on_control_button() -> void:
|
||||
$TabContainer.current_tab = 0
|
||||
$TabContainer.current_tab = 1
|
||||
$Background/side_panel/select_control.button_pressed = true
|
||||
$Background/side_panel/select_prd.button_pressed = false
|
||||
$Background/side_panel/select_ems_g.button_pressed = false
|
||||
|
||||
|
||||
func _on_emsg_select() -> void:
|
||||
emit_signal('read_ems_g')
|
||||
emit_signal('read_ems_g_start')
|
||||
$TabContainer.current_tab = 2
|
||||
$Background/side_panel/select_ems_g.button_pressed = true
|
||||
$Background/side_panel/select_control.button_pressed = false
|
||||
|
||||
Reference in New Issue
Block a user