Обновленная версия фс

This commit is contained in:
Maxim
2025-07-23 07:33:19 +03:00
parent 11dd78b904
commit 6182aaf6b0
41 changed files with 76 additions and 44 deletions

View File

@@ -193,7 +193,7 @@ func setup_fs(unit_fs: Node, meta_device: Array) -> void:
if not unit_fs.online:
return
await _setup_fs_device(unit_fs, freq, att)
_setup_fs_device(unit_fs, freq, att)
func _find_device_address(address: String, start_idx: int, end_idx: int) -> String:
@@ -210,14 +210,13 @@ func _get_att_value(device: String, is_unit_fs1: bool) -> float:
# Асинхронная настройка модуля
func _setup_fs_device(unit_fs: Node, freq: int, att: float) -> void:
unit_fs.set_gen_state(false)
await get_tree().create_timer(0.3).timeout
unit_fs.get_gen_state()
unit_fs.set_gen_state(true)
await get_tree().create_timer(0.3).timeout
unit_fs.set_carrier(freq * 1_000_000)
unit_fs.set_att_batch(att)
unit_fs.get_carrier()
unit_fs.get_att_batch()
unit_fs.get_base_current_temp()
unit_fs.get_base_can_macro()
unit_fs.status_can_macro_exec(true)
unit_fs.get_gen_state()