[PATCH] Доработка. Изменение кодов состояния выполнения помехи для 5П-28

This commit is contained in:
MaD_CaT
2025-11-08 11:09:45 +03:00
committed by sasha80
parent 16ca216bdd
commit 06e909ad9c

View File

@@ -29,9 +29,9 @@ const MOD_TYPES: Array = [
const CU_STATE: Dictionary = {
0: 2, # Подготовка к выполнению
1: 1, # Выполняется
2: 9, # Ошибка в команде
2: 3, # Ошибка в команде
3: 7, # Занят выполнением другого ЦУ
4: 9, # Неисправность
4: 2, # Неисправность
}
class TCP5P28 extends unit.Unit:
@@ -135,7 +135,7 @@ class TCP5P28 extends unit.Unit:
continue
var cu = ecms[id]
cu_data.encode_u16(0, cu.ispp)
var state: int = CU_STATE[cu.svk] if CU_STATE.has(cu.svk) else 9
var state: int = CU_STATE[cu.svk] if CU_STATE.has(cu.svk) else 8
cu_data.encode_u8(2, state) # Состояние выполнения команды
cu_data.encode_u8(3, 0xFF) # Эффективность работы помехи
data.append_array(cu_data)