automatically pack time tagged commands

to disable HK generation
This commit is contained in:
2022-08-12 12:10:50 +02:00
parent 2da9f13bd7
commit e383263d2f
2 changed files with 6 additions and 1 deletions

2
deps/tmtccmd vendored

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(