run afmt
This commit is contained in:
@ -18,8 +18,12 @@ class Info:
|
||||
|
||||
|
||||
def pack_controller_commands(tc_queue: TcQueueT, op_code: str):
|
||||
parameters = prompt_parameters([{"name": "Mode", "defaultValue": "2"}, {
|
||||
"name": "Submode", "defaultValue": "0"}])
|
||||
parameters = prompt_parameters(
|
||||
[
|
||||
{"name": "Mode", "defaultValue": "2"},
|
||||
{"name": "Submode", "defaultValue": "0"},
|
||||
]
|
||||
)
|
||||
mode = int(parameters["Mode"])
|
||||
if mode < 0 or mode > 2:
|
||||
print("Invalid Mode, defaulting to OFF")
|
||||
|
@ -1,6 +1,7 @@
|
||||
from tmtccmd.config import QueueCommands
|
||||
from tmtccmd.tc.definitions import TcQueueT
|
||||
from tmtccmd.tc.pus_3_fsfw_hk import *
|
||||
|
||||
"""
|
||||
from config.object_ids import (
|
||||
BPX_HANDLER_ID,
|
||||
@ -66,8 +67,6 @@ PROC_INFO_DICT = {
|
||||
KAI.TCS_FT_ON[0]: [OpCodes.TCS_FT_ON, KAI.TCS_FT_ON[1], 120.0, 10.0],
|
||||
KAI.TCS_FT_OFF[0]: [OpCodes.TCS_FT_OFF, KAI.TCS_FT_OFF[1], 120.0, 10.0],
|
||||
KAI.ACS_FT[0]: [OpCodes.ACS_FT, KAI.ACS_FT[1], 120.0, 10.0],
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -159,7 +158,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-a")
|
||||
|
||||
# MGMs
|
||||
# MGMs
|
||||
sid = make_sid(oids.MGM_0_LIS3_HANDLER_ID, MgmSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -168,7 +167,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
# Gyros
|
||||
# Gyros
|
||||
sid = make_sid(oids.GYRO_0_ADIS_HANDLER_ID, GyroSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -181,7 +180,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
# GNSS0
|
||||
# GNSS0
|
||||
sid = make_sid(oids.GPS_HANDLER_0_ID, GnssSetIds_0.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -191,7 +190,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
tc_queue.appendleft((QueueCommands.WAIT, 5.0))
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-b")
|
||||
|
||||
# MGMs
|
||||
# MGMs
|
||||
sid = make_sid(oids.MGM_2_LIS3_HANDLER_ID, MgmSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -200,7 +199,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
# Gyros
|
||||
# Gyros
|
||||
sid = make_sid(oids.GYRO_2_ADIS_HANDLER_ID, GyroSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -213,7 +212,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
#GNSS1
|
||||
# GNSS1
|
||||
sid = make_sid(oids.GPS_HANDLER_1_ID, GnssSetIds_1.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -223,7 +222,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
tc_queue.appendleft((QueueCommands.WAIT, 5.0))
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-d")
|
||||
|
||||
# MGMs
|
||||
# MGMs
|
||||
sid = make_sid(oids.MGM_0_LIS3_HANDLER_ID, MgmSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -240,7 +239,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
# Gyros
|
||||
# Gyros
|
||||
sid = make_sid(oids.GYRO_0_ADIS_HANDLER_ID, GyroSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -265,7 +264,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
# GNSS0+1
|
||||
# GNSS0+1
|
||||
sid = make_sid(oids.GPS_HANDLER_0_ID, GnssSetIds_0.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -293,15 +292,13 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
|
||||
# mgt 1: imtq und hk
|
||||
# mgt 2.: imtq + dual side + dipole
|
||||
# mgt 1: imtq und hk
|
||||
# mgt 2.: imtq + dual side + dipole
|
||||
|
||||
if op_code in OpCodes.MGT_FT_DP:
|
||||
key = KAI.MGT_FT[0]
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-a")
|
||||
|
||||
|
||||
sid = make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.ENG_HK_SET)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -315,7 +312,6 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-off")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user