Доработка. Режимы работы кнопки подавление. Теперь от неё зависит будет отправляться команда в Skysensor или нет.

This commit is contained in:
MaD_CaT
2025-07-31 15:33:49 +03:00
parent c03c729dc1
commit 78fd6758e0
4 changed files with 8 additions and 13 deletions

View File

@@ -304,6 +304,11 @@ func interfer_create(u, interfer_name, ecms, param, kni, id, dict, source_interf
func send_ecm(ecm, unit0) -> void:
if ecm.krp != INTERFER_OFF:
if not emit_enable:
return
elif not ecm.modulation:
return
msg6_num += 1
var json_data = ecm.get_msg6_data(msg6_num)
unit0.tx_stack.append(json_data)
@@ -341,5 +346,3 @@ func push_id(id: int) -> void:
func on_emit_changed(state, ecms) -> void:
emit_enable = state
for ecm in ecms.values():
ecm.modulation = state