apply black
This commit is contained in:
parent
83115d43af
commit
9c5d16fb7c
@ -324,6 +324,7 @@ def add_bpx_cmd_definitions(cmd_dict: ServiceOpCodeDictT):
|
|||||||
|
|
||||||
def add_pl_pcdu_cmds(cmd_dict: ServiceOpCodeDictT):
|
def add_pl_pcdu_cmds(cmd_dict: ServiceOpCodeDictT):
|
||||||
from pus_tc.devs.plpcdu import OpCodes, Info
|
from pus_tc.devs.plpcdu import OpCodes, Info
|
||||||
|
|
||||||
op_code_dict = dict()
|
op_code_dict = dict()
|
||||||
add_op_code_entry(
|
add_op_code_entry(
|
||||||
op_code_dict=op_code_dict, keys=OpCodes.SWITCH_ON, info=Info.SWITCH_ON
|
op_code_dict=op_code_dict, keys=OpCodes.SWITCH_ON, info=Info.SWITCH_ON
|
||||||
|
@ -133,7 +133,9 @@ def pack_core_commands(tc_queue: TcQueueT, op_code: str):
|
|||||||
)
|
)
|
||||||
if op_code in OpCodes.REBOOT_FULL:
|
if op_code in OpCodes.REBOOT_FULL:
|
||||||
tc_queue.appendleft((QueueCommands.PRINT, f"Core Command: {Info.REBOOT_FULL}"))
|
tc_queue.appendleft((QueueCommands.PRINT, f"Core Command: {Info.REBOOT_FULL}"))
|
||||||
cmd = generate_action_command(object_id=CORE_CONTROLLER_ID, action_id=ActionIds.FULL_REBOOT)
|
cmd = generate_action_command(
|
||||||
|
object_id=CORE_CONTROLLER_ID, action_id=ActionIds.FULL_REBOOT
|
||||||
|
)
|
||||||
tc_queue.appendleft(cmd.pack_command_tuple())
|
tc_queue.appendleft(cmd.pack_command_tuple())
|
||||||
if op_code in OpCodes.XSC_REBOOT_SELF:
|
if op_code in OpCodes.XSC_REBOOT_SELF:
|
||||||
perform_reboot_cmd(tc_queue=tc_queue, reboot_self=True)
|
perform_reboot_cmd(tc_queue=tc_queue, reboot_self=True)
|
||||||
|
@ -81,7 +81,11 @@ def generic_print(tc_queue: TcQueueT, info: dict):
|
|||||||
|
|
||||||
|
|
||||||
def pack_generic_hk_listening_cmds(
|
def pack_generic_hk_listening_cmds(
|
||||||
tc_queue: TcQueueT, proc_key: str, sid_list: list[bytearray], diag: bool, mgt: bool,
|
tc_queue: TcQueueT,
|
||||||
|
proc_key: str,
|
||||||
|
sid_list: list[bytearray],
|
||||||
|
diag: bool,
|
||||||
|
mgt: bool,
|
||||||
):
|
):
|
||||||
info = PROC_INFO_DICT[proc_key]
|
info = PROC_INFO_DICT[proc_key]
|
||||||
collection_time = info[2]
|
collection_time = info[2]
|
||||||
@ -320,26 +324,62 @@ def activate_mgts_alternately(
|
|||||||
tc_queue: TcQueueT,
|
tc_queue: TcQueueT,
|
||||||
):
|
):
|
||||||
|
|
||||||
command = pack_dipole_command(object_id=oids.IMTQ_HANDLER_ID, x_dipole=2000, y_dipole=0, z_dipole=0, duration=30000)
|
command = pack_dipole_command(
|
||||||
|
object_id=oids.IMTQ_HANDLER_ID,
|
||||||
|
x_dipole=2000,
|
||||||
|
y_dipole=0,
|
||||||
|
z_dipole=0,
|
||||||
|
duration=30000,
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
||||||
|
|
||||||
command = pack_dipole_command(object_id=oids.IMTQ_HANDLER_ID, x_dipole=-2000, y_dipole=0, z_dipole=0, duration=30000)
|
command = pack_dipole_command(
|
||||||
|
object_id=oids.IMTQ_HANDLER_ID,
|
||||||
|
x_dipole=-2000,
|
||||||
|
y_dipole=0,
|
||||||
|
z_dipole=0,
|
||||||
|
duration=30000,
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
||||||
|
|
||||||
command = pack_dipole_command(object_id=oids.IMTQ_HANDLER_ID, x_dipole=0, y_dipole=2000, z_dipole=0, duration=30000)
|
command = pack_dipole_command(
|
||||||
|
object_id=oids.IMTQ_HANDLER_ID,
|
||||||
|
x_dipole=0,
|
||||||
|
y_dipole=2000,
|
||||||
|
z_dipole=0,
|
||||||
|
duration=30000,
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
||||||
|
|
||||||
command = pack_dipole_command(object_id=oids.IMTQ_HANDLER_ID, x_dipole=0, y_dipole=-2000, z_dipole=0, duration=30000)
|
command = pack_dipole_command(
|
||||||
|
object_id=oids.IMTQ_HANDLER_ID,
|
||||||
|
x_dipole=0,
|
||||||
|
y_dipole=-2000,
|
||||||
|
z_dipole=0,
|
||||||
|
duration=30000,
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
||||||
|
|
||||||
command = pack_dipole_command(object_id=oids.IMTQ_HANDLER_ID, x_dipole=0, y_dipole=0, z_dipole=2000, duration=30000)
|
command = pack_dipole_command(
|
||||||
|
object_id=oids.IMTQ_HANDLER_ID,
|
||||||
|
x_dipole=0,
|
||||||
|
y_dipole=0,
|
||||||
|
z_dipole=2000,
|
||||||
|
duration=30000,
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
||||||
|
|
||||||
command = pack_dipole_command(object_id=oids.IMTQ_HANDLER_ID, x_dipole=0, y_dipole=0, z_dipole=-2000, duration=30000)
|
command = pack_dipole_command(
|
||||||
|
object_id=oids.IMTQ_HANDLER_ID,
|
||||||
|
x_dipole=0,
|
||||||
|
y_dipole=0,
|
||||||
|
z_dipole=-2000,
|
||||||
|
duration=30000,
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
tc_queue.appendleft((QueueCommands.WAIT, 10.0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user