diff --git a/.idea/runConfigurations/PDU1_Commanding.xml b/.idea/runConfigurations/PDU1_Commanding.xml
index 45f209a..28f9c0d 100644
--- a/.idea/runConfigurations/PDU1_Commanding.xml
+++ b/.idea/runConfigurations/PDU1_Commanding.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/config/hook_implementations.py b/config/hook_implementations.py
index 3915be8..177e6f9 100644
--- a/config/hook_implementations.py
+++ b/config/hook_implementations.py
@@ -362,6 +362,26 @@ def get_eive_service_op_code_dict(service_op_code_dict: ServiceOpCodeDictT):
"Syrlinks Handler: Read LCL config register",
{OpCodeDictKeys.TIMEOUT: 2.0},
),
+ "15": (
+ "Syrlinks Handler: Set waveform OQPSK",
+ {OpCodeDictKeys.TIMEOUT: 2.0},
+ ),
+ "16": (
+ "Syrlinks Handler: Set waveform BPSK",
+ {OpCodeDictKeys.TIMEOUT: 2.0},
+ ),
+ "17": (
+ "Syrlinks Handler: Set second config",
+ {OpCodeDictKeys.TIMEOUT: 2.0},
+ ),
+ "18": (
+ "Syrlinks Handler: Enable debug output",
+ {OpCodeDictKeys.TIMEOUT: 2.0},
+ ),
+ "19": (
+ "Syrlinks Handler: Disable debug output",
+ {OpCodeDictKeys.TIMEOUT: 2.0},
+ ),
}
service_syrlinks_handler_tuple = (
"Syrlinks Handler",
diff --git a/pus_tc/devs/syrlinks_hk_handler.py b/pus_tc/devs/syrlinks_hk_handler.py
index 109ba79..5665970 100644
--- a/pus_tc/devs/syrlinks_hk_handler.py
+++ b/pus_tc/devs/syrlinks_hk_handler.py
@@ -20,16 +20,21 @@ class SetIds:
class CommandIds:
- SET_TX_MODE_STANDBY = bytearray([0x0, 0x0, 0x0, 0x3])
- SET_TX_MODE_MODULATION = bytearray([0x0, 0x0, 0x0, 0x4])
- SET_TX_MODE_CW = bytearray([0x0, 0x0, 0x0, 0x5])
- READ_TX_STATUS = bytearray([0x0, 0x0, 0x0, 0x7])
- READ_TX_WAVEFORM = bytearray([0x0, 0x0, 0x0, 0x8])
- READ_TX_AGC_VALUE_HIGH_BYTE = bytearray([0x0, 0x0, 0x0, 0x9])
- READ_TX_AGC_VALUE_LOW_BYTE = bytearray([0x0, 0x0, 0x0, 0x9])
+ READ_RX_STATUS_REGISTERS = 2
+ SET_TX_MODE_STANDBY = 3
+ SET_TX_MODE_MODULATION = 4
+ SET_TX_MODE_CW = 5
+ READ_TX_STATUS = 7
+ READ_TX_WAVEFORM = 8
+ READ_TX_AGC_VALUE_HIGH_BYTE = 9
+ READ_TX_AGC_VALUE_LOW_BYTE = 10
WRITE_LCL_CONFIG = 11
READ_LCL_CONFIG_REGISTER = 12
- READ_RX_STATUS_REGISTERS = 2
+ SET_WAVEFORM_OQPSK = 17
+ SET_WAVEFORM_BPSK = 18
+ SET_SECOND_CONFIG = 19
+ ENABLE_DEBUG = 20
+ DISABLE_DEBUG = 21
def pack_syrlinks_command(
@@ -131,3 +136,41 @@ def pack_syrlinks_command(
command = object_id + struct.pack('!I', CommandIds.READ_LCL_CONFIG_REGISTER)
command = PusTelecommand(service=8, subservice=128, ssc=19, app_data=command)
tc_queue.appendleft(command.pack_command_tuple())
+<<<<<<< HEAD
+ if op_code == "15":
+ tc_queue.appendleft(
+ (QueueCommands.PRINT, "Syrlinks: Set waveform OQPSK")
+ )
+ command = object_id + struct.pack('!I', CommandIds.SET_WAVEFORM_OQPSK)
+ command = PusTelecommand(service=8, subservice=128, ssc=20, app_data=command)
+ tc_queue.appendleft(command.pack_command_tuple())
+ if op_code == "16":
+ tc_queue.appendleft(
+ (QueueCommands.PRINT, "Syrlinks: Set waveform BPSK")
+ )
+ command = object_id + struct.pack('!I', CommandIds.SET_WAVEFORM_BPSK)
+ command = PusTelecommand(service=8, subservice=128, ssc=21, app_data=command)
+ tc_queue.appendleft(command.pack_command_tuple())
+ if op_code == "17":
+ tc_queue.appendleft(
+ (QueueCommands.PRINT, "Syrlinks: Set second config")
+ )
+ command = object_id + struct.pack('!I', CommandIds.SET_SECOND_CONFIG)
+ command = PusTelecommand(service=8, subservice=128, ssc=22, app_data=command)
+ tc_queue.appendleft(command.pack_command_tuple())
+ if op_code == "18":
+ tc_queue.appendleft(
+ (QueueCommands.PRINT, "Syrlinks: Enable debug printout")
+ )
+ command = object_id + struct.pack('!I', CommandIds.ENABLE_DEBUG)
+ command = PusTelecommand(service=8, subservice=128, ssc=23, app_data=command)
+ tc_queue.appendleft(command.pack_command_tuple())
+ if op_code == "19":
+ tc_queue.appendleft(
+ (QueueCommands.PRINT, "Syrlinks: Disable debug printout")
+ )
+ command = object_id + struct.pack('!I', CommandIds.DISABLE_DEBUG)
+ command = PusTelecommand(service=8, subservice=128, ssc=24, app_data=command)
+ tc_queue.appendleft(command.pack_command_tuple())
+=======
+>>>>>>> develop