diff --git a/config/cmd_definitions.py b/config/cmd_definitions.py index 63b10b1..d89eeb7 100644 --- a/config/cmd_definitions.py +++ b/config/cmd_definitions.py @@ -92,9 +92,18 @@ def add_core_controller_definitions(cmd_dict: ServiceOpCodeDictT): def add_pl_pcdu_cmds(cmd_dict: ServiceOpCodeDictT): from pus_tc.plpcdu import OpCodes + op_code_dict = dict() - add_op_code_entry(op_code_dict=op_code_dict, keys=OpCodes.SWITCH_ADC_ON, info="Switch PL PCDU ADC on") - add_op_code_entry(op_code_dict=op_code_dict, keys=OpCodes.SWITCH_ALL_ON, info="Switch all PL PCDU modules on") + add_op_code_entry( + op_code_dict=op_code_dict, + keys=OpCodes.SWITCH_ADC_ON, + info="Switch PL PCDU ADC on", + ) + add_op_code_entry( + op_code_dict=op_code_dict, + keys=OpCodes.SWITCH_ALL_ON, + info="Switch all PL PCDU modules on", + ) add_service_op_code_entry( srv_op_code_dict=cmd_dict, name=CustomServiceList.PL_PCDU.value, diff --git a/config/hook_implementations.py b/config/hook_implementations.py index 01527a4..b47cd3f 100644 --- a/config/hook_implementations.py +++ b/config/hook_implementations.py @@ -114,7 +114,7 @@ def get_eive_service_op_code_dict(service_op_code_dict: ServiceOpCodeDictT): add_bpx_cmd_definitions, add_core_controller_definitions, add_pcdu_cmds, - add_pl_pcdu_cmds + add_pl_pcdu_cmds, ) from pus_tc.gps import GpsOpCodes @@ -426,8 +426,14 @@ def get_eive_service_op_code_dict(service_op_code_dict: ServiceOpCodeDictT): {OpCodeDictKeys.TIMEOUT: 2.0}, ), "69": ("Star Tracker: Firmware update", {OpCodeDictKeys.TIMEOUT: 2.0}), - "70": ("Star Tracker: Disable timestamp generation", {OpCodeDictKeys.TIMEOUT: 2.0}), - "71": ("Star Tracker: Enable timestamp generation", {OpCodeDictKeys.TIMEOUT: 2.0}), + "70": ( + "Star Tracker: Disable timestamp generation", + {OpCodeDictKeys.TIMEOUT: 2.0}, + ), + "71": ( + "Star Tracker: Enable timestamp generation", + {OpCodeDictKeys.TIMEOUT: 2.0}, + ), } service_star_tracker_tuple = ("Star tracker", op_code_dict_srv_star_tracker) diff --git a/pus_tc/plpcdu.py b/pus_tc/plpcdu.py index 40371ce..6da84e1 100644 --- a/pus_tc/plpcdu.py +++ b/pus_tc/plpcdu.py @@ -6,7 +6,7 @@ from tmtccmd.tc.definitions import TcQueueT from tmtccmd.tc.service_200_mode import pack_mode_data, Modes, Subservices from tmtccmd.tc.service_20_parameter import ( pack_scalar_double_param_app_data, - pack_fsfw_load_param_cmd + pack_fsfw_load_param_cmd, ) from tmtccmd.utility.logger import get_console_logger from spacepackets.ecss.tc import PusTelecommand @@ -58,7 +58,7 @@ def pack_pl_pcdu_commands(tc_queue: TcQueueT, op_code: str): object_id=PL_PCDU_ID, domain_id=0, unique_id=ParamIds.DRO_TO_X8_WAIT_TIME, - parameter=wait_time + parameter=wait_time, ) cmd = pack_fsfw_load_param_cmd(ssc=0, app_data=param_data) tc_queue.appendleft(cmd.pack_command_tuple())