From e37430423e814b9e05f25d63970f2c2b5048cfb1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 28 Mar 2022 12:30:48 +0200 Subject: [PATCH 01/50] tmtccmd update --- tmtccmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmtccmd b/tmtccmd index 86cf0bf..06aed2f 160000 --- a/tmtccmd +++ b/tmtccmd @@ -1 +1 @@ -Subproject commit 86cf0bf9530f0d31784ff96b025f8b778d1732b1 +Subproject commit 06aed2f309a105f8f0e183d359a432301eb6947d From b21850d4f9c7d8b39b91d8363ea3aeb080b984f8 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Tue, 29 Mar 2022 07:03:13 +0200 Subject: [PATCH 02/50] syrlinks mode commands wip --- pus_tc/devs/syrlinks_hk_handler.py | 35 +++++++++++++++++++++++------- tmtccmd | 2 +- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/pus_tc/devs/syrlinks_hk_handler.py b/pus_tc/devs/syrlinks_hk_handler.py index 93a3b9d..9bf8928 100644 --- a/pus_tc/devs/syrlinks_hk_handler.py +++ b/pus_tc/devs/syrlinks_hk_handler.py @@ -38,48 +38,67 @@ def pack_syrlinks_command( ) if op_code == "0": + tc_queue.appendleft( + (QueueCommands.PRINT, "PLOC Supervisor: Set mode off") + ) + command = pack_mode_data(object_id, Modes.OFF, 0) + command = PusTelecommand(service=200, subservice=1, ssc=9, app_data=command) + tc_queue.appendleft(command.pack_command_tuple()) + if op_code == "1": + tc_queue.appendleft( + (QueueCommands.PRINT, "PLOC Supervisor: Set mode on") + ) + command = pack_mode_data(object_id, Modes.ON, 0) + command = PusTelecommand(service=200, subservice=1, ssc=10, app_data=command) + tc_queue.appendleft(command.pack_command_tuple()) + if op_code == "2": + tc_queue.appendleft((QueueCommands.PRINT, "Star tracker: Mode Normal")) + command = pack_mode_data(object_id, Modes.NORMAL, 0) + command = PusTelecommand(service=200, subservice=1, ssc=11, app_data=command) + tc_queue.appendleft(command.pack_command_tuple()) + if op_code == "3": tc_queue.appendleft((QueueCommands.PRINT, "syrlinks: Set TX mode standby")) command = object_id + CommandIds.SET_TX_MODE_STANDBY command = PusTelecommand(service=8, subservice=128, ssc=10, app_data=command) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "1": + if op_code == "4": tc_queue.appendleft((QueueCommands.PRINT, "syrlinks: Set TX mode modulation")) command = object_id + CommandIds.SET_TX_MODE_MODULATION command = PusTelecommand(service=8, subservice=128, ssc=11, app_data=command) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "2": + if op_code == "5": tc_queue.appendleft((QueueCommands.PRINT, "syrlinks: Set TX mode CW")) command = object_id + CommandIds.SET_TX_MODE_CW command = PusTelecommand(service=8, subservice=128, ssc=12, app_data=command) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "3": + if op_code == "6": tc_queue.appendleft((QueueCommands.PRINT, "Syrlinks: Get RX Registers")) sid = make_sid(object_id, SetIds.RX_REGISTERS_DATASET) command = generate_one_hk_command(sid, 200) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "4": + if op_code == "7": tc_queue.appendleft((QueueCommands.PRINT, "Syrlinks: Get TX Registers")) sid = make_sid(object_id, SetIds.TX_REGISTERS_DATASET) command = generate_one_hk_command(sid, 201) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "5": + if op_code == "8": tc_queue.appendleft((QueueCommands.PRINT, "Syrlinks: Read TX status")) command = object_id + CommandIds.READ_TX_STATUS command = PusTelecommand(service=8, subservice=128, ssc=13, app_data=command) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "6": + if op_code == "9": tc_queue.appendleft((QueueCommands.PRINT, "Syrlinks: Read TX waveform")) command = object_id + CommandIds.READ_TX_WAVEFORM command = PusTelecommand(service=8, subservice=128, ssc=14, app_data=command) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "7": + if op_code == "10": tc_queue.appendleft( (QueueCommands.PRINT, "Syrlinks: Read TX AGC value high byte") ) command = object_id + CommandIds.READ_TX_AGC_VALUE_HIGH_BYTE command = PusTelecommand(service=8, subservice=128, ssc=15, app_data=command) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == "8": + if op_code == "11": tc_queue.appendleft( (QueueCommands.PRINT, "Syrlinks: Read TX AGC value low byte") ) diff --git a/tmtccmd b/tmtccmd index 06aed2f..86cf0bf 160000 --- a/tmtccmd +++ b/tmtccmd @@ -1 +1 @@ -Subproject commit 06aed2f309a105f8f0e183d359a432301eb6947d +Subproject commit 86cf0bf9530f0d31784ff96b025f8b778d1732b1 From ed85e1706f818ec652285b57a31b113f60128f70 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Tue, 29 Mar 2022 07:57:39 +0200 Subject: [PATCH 03/50] syrlinks mode commands --- .idea/runConfigurations/Syrlinks.xml | 6 +++--- config/hook_implementations.py | 17 ++++++++++------- pus_tc/devs/syrlinks_hk_handler.py | 7 ++++--- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.idea/runConfigurations/Syrlinks.xml b/.idea/runConfigurations/Syrlinks.xml index 3e1f604..28f4220 100644 --- a/.idea/runConfigurations/Syrlinks.xml +++ b/.idea/runConfigurations/Syrlinks.xml @@ -6,13 +6,13 @@ -