From e383263d2f39c17e432ae51b9a01db8466c34b68 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 12 Aug 2022 12:10:50 +0200 Subject: [PATCH] automatically pack time tagged commands to disable HK generation --- deps/tmtccmd | 2 +- pus_tc/system/proc.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/deps/tmtccmd b/deps/tmtccmd index 4a54bff..92e9b3d 160000 --- a/deps/tmtccmd +++ b/deps/tmtccmd @@ -1 +1 @@ -Subproject commit 4a54bffa6b54447a426e88d11dcfe1c3cdcccc10 +Subproject commit 92e9b3d05c01c836eadbacd729e375f42d336f95 diff --git a/pus_tc/system/proc.py b/pus_tc/system/proc.py index 5aee611..8179566 100644 --- a/pus_tc/system/proc.py +++ b/pus_tc/system/proc.py @@ -41,6 +41,7 @@ from pus_tc.devs.reaction_wheels import pack_rw_ass_cmds, pack_set_speed_command class OpCodes: + """FT: Functional Test""" TV_SETUP_TCS_FT_ON = ["s", "tcs-ft-on"] RESET_SCHED = ["reset-sched", "rs"] HEATER = ["heater"] @@ -709,6 +710,10 @@ def enable_listen_to_hk_for_x_seconds( ) for cmd in cmd_tuple: q.add_pus_tc(cmd) + generate_time_tagged_cmd( + struct.pack("!I", int(round(time.time() + interval_seconds))), + gen_disable_listen_to_hk_for_x_seconds(q, diag, device, sid) + ) def gen_disable_listen_to_hk_for_x_seconds(