automatically pack time tagged commands

to disable HK generation
This commit is contained in:
Robin Müller 2022-08-12 12:10:50 +02:00
parent 2da9f13bd7
commit e383263d2f
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 6 additions and 1 deletions

2
deps/tmtccmd vendored

@ -1 +1 @@
Subproject commit 4a54bffa6b54447a426e88d11dcfe1c3cdcccc10
Subproject commit 92e9b3d05c01c836eadbacd729e375f42d336f95

View File

@ -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(