diff --git a/pus_tc/devs/rtd.py b/pus_tc/devs/rtd.py index 531989e..8e3c614 100644 --- a/pus_tc/devs/rtd.py +++ b/pus_tc/devs/rtd.py @@ -37,12 +37,14 @@ class OpCodes: ON = ["0", "on"] OFF = ["1", "off"] NORMAL = ["2", "normal"] + CONFIG_CMD = ["3", "Write config"] class Info: ON = "Switch handler on" OFF = "Switch handler off" NORMAL = "Switch handler normal" + WIRTE_CONFIG = "Write config" def specify_rtd_cmds(cmd_dict: ServiceOpCodeDictT): @@ -90,6 +92,10 @@ def pack_rtd_commands(op_code: str, object_id: Optional[ObjectId], tc_queue: TcQ service=200, subservice=Subservices.TC_MODE_COMMAND, app_data=app_data ) tc_queue.appendleft(cmd.pack_command_tuple()) + if op_code in OpCodes.CONFIG_CMD: + command = object_id + CommandIds.PRINT_CLCW + command = PusTelecommand(service=8, subservice=128, ssc=30, app_data=command) + tc_queue.appendleft(command.pack_command_tuple()) def prompt_rtd_idx(): diff --git a/pus_tc/system/proc.py b/pus_tc/system/proc.py index 4083e2f..261f745 100644 --- a/pus_tc/system/proc.py +++ b/pus_tc/system/proc.py @@ -332,7 +332,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str): False, True, False, - True + False ] pack_acs_command(tc_queue=tc_queue, op_code="acs-a") @@ -358,7 +358,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str): False, True, False, - True + False ] for b_side_dev in b_side_pairs: @@ -393,7 +393,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str): False, True, False, - True, + False, ] pack_generic_hk_listening_cmds( tc_queue=tc_queue, @@ -461,12 +461,12 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str): False, True, False, - True, + False, False, False, True, False, - True, + False, True, True, True, diff --git a/pus_tm/devs/gyros.py b/pus_tm/devs/gyros.py index 8031143..8fe6c79 100644 --- a/pus_tm/devs/gyros.py +++ b/pus_tm/devs/gyros.py @@ -72,4 +72,4 @@ def handle_l3g_gyro_hk( f"Angular Velocities (degrees per second): X {angVelocX} | " f"Y {angVelocY} | Z {angVelocZ}" ) - pw.dlog(f"Temperature {temp} C") + pw.dlog(f"Temperature {temp} °C") diff --git a/tmtccmd b/tmtccmd index 96643d2..476d48e 160000 --- a/tmtccmd +++ b/tmtccmd @@ -1 +1 @@ -Subproject commit 96643d274d018a7009f6831899c3ead6484d746f +Subproject commit 476d48e8d399055d0b2a257c1fcebedc4f105e17