2020-12-29 11:29:03 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2022-06-10 11:02:08 +02:00
|
|
|
"""PDU1 is mounted on the X2 slot of the P60 dock
|
2020-12-29 11:29:03 +01:00
|
|
|
@author J. Meier
|
|
|
|
@date 17.12.2020
|
|
|
|
"""
|
2023-06-19 17:16:00 +02:00
|
|
|
import enum
|
|
|
|
|
2022-11-29 16:53:29 +01:00
|
|
|
from eive_tmtc.config.definitions import CustomServiceList
|
|
|
|
from eive_tmtc.config.object_ids import PDU_1_HANDLER_ID
|
2023-06-19 17:16:00 +02:00
|
|
|
from eive_tmtc.gomspace.gomspace_common import (
|
|
|
|
pack_ping_command,
|
|
|
|
TableIds,
|
|
|
|
pack_get_param_command,
|
|
|
|
)
|
|
|
|
from eive_tmtc.gomspace.gomspace_pdu_definitions import PduHkTable
|
2022-11-29 16:53:29 +01:00
|
|
|
from eive_tmtc.tmtc.power.common_power import (
|
2023-11-29 17:04:30 +01:00
|
|
|
add_gomspace_nodes,
|
2022-10-18 10:44:32 +02:00
|
|
|
pack_common_gomspace_cmds,
|
2022-08-27 16:28:33 +02:00
|
|
|
req_hk_cmds,
|
|
|
|
PowerOpCodes,
|
|
|
|
generic_on_cmd,
|
|
|
|
generic_off_cmd,
|
2022-10-18 10:44:32 +02:00
|
|
|
add_gomspace_cmd_defs,
|
2023-01-12 14:11:30 +01:00
|
|
|
create_generic_on_cmd,
|
|
|
|
create_generic_off_cmd,
|
2022-10-18 10:44:32 +02:00
|
|
|
pack_common_power_cmds,
|
2022-10-18 11:08:28 +02:00
|
|
|
add_common_power_defs,
|
2023-01-12 15:48:49 +01:00
|
|
|
SetId,
|
2022-08-27 16:28:33 +02:00
|
|
|
)
|
2023-06-19 17:16:00 +02:00
|
|
|
from spacepackets.ecss import PusTelecommand
|
2022-07-04 15:22:53 +02:00
|
|
|
|
2023-11-29 17:04:30 +01:00
|
|
|
from tmtccmd.config import CmdTreeNode, OpCodeEntry, TmtcDefinitionWrapper
|
2022-10-18 10:44:32 +02:00
|
|
|
from tmtccmd.config.tmtc import tmtc_definitions_provider
|
2023-11-10 19:23:06 +01:00
|
|
|
from tmtccmd.tmtc import DefaultPusQueueHelper
|
2023-06-19 17:16:00 +02:00
|
|
|
from tmtccmd.util import ObjectIdU32
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Pdu1InfoBase:
|
|
|
|
TCS = "Switch TCS Board"
|
|
|
|
SYRLINKS = "Switch Syrlinks (COM)"
|
|
|
|
STR = "Switch Startracker"
|
|
|
|
MGT = "Switch Magnetorquer"
|
|
|
|
SUS_N = "Switch Sun Sensor Board Nominal"
|
|
|
|
SCEX = "Switch Solar Cell Experiment"
|
|
|
|
PLOC = "Switch Payload On-Board Computer"
|
|
|
|
ACS_A = "Switch ACS Board A-Side"
|
|
|
|
|
|
|
|
|
|
|
|
class Pdu1ChIndex(enum.IntEnum):
|
|
|
|
TCS = 0
|
|
|
|
SYRLINKS = 1
|
|
|
|
STR = 2
|
|
|
|
MGT = 3
|
|
|
|
SUS_N = 4
|
|
|
|
SCEX = 5
|
|
|
|
PLOC = 6
|
|
|
|
ACS_A = 7
|
2020-12-29 11:29:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
class PDU1TestProcedure:
|
|
|
|
"""
|
|
|
|
@brief Use this class to define the tests to perform for the PDU2.
|
|
|
|
@details Setting all to True will run all tests.
|
|
|
|
Setting all to False will only run the tests set to True.
|
|
|
|
"""
|
2022-01-18 14:03:56 +01:00
|
|
|
|
2021-02-09 12:35:10 +01:00
|
|
|
all = False
|
2020-12-29 11:29:03 +01:00
|
|
|
reboot = False
|
|
|
|
ping = False
|
|
|
|
read_temperature = False
|
2022-01-18 14:03:56 +01:00
|
|
|
turn_channel_2_on = False # Star Tracker connected to this channel (5V)
|
2021-04-18 18:52:47 +02:00
|
|
|
turn_channel_2_off = False
|
|
|
|
turn_channel_3_on = False # MTQ connected to this channel (5V)
|
2021-08-11 17:14:30 +02:00
|
|
|
turn_channel_3_off = False
|
2020-12-29 11:29:03 +01:00
|
|
|
|
|
|
|
|
2023-11-22 10:17:05 +01:00
|
|
|
def pack_pdu1_commands(object_id: ObjectIdU32, q: DefaultPusQueueHelper, cmd_str: str):
|
2022-07-04 15:22:53 +02:00
|
|
|
q.add_log_cmd("Commanding PDU1")
|
2022-05-23 11:24:55 +02:00
|
|
|
objb = object_id.as_bytes
|
2023-11-22 10:17:05 +01:00
|
|
|
pdu1_switch_cmds(q, cmd_str)
|
|
|
|
pdu1_req_hk_cmds(q, cmd_str)
|
|
|
|
pack_common_power_cmds("PDU1", object_id, q, cmd_str)
|
|
|
|
pack_common_gomspace_cmds("PDU1", object_id, q, cmd_str)
|
2020-12-29 11:29:03 +01:00
|
|
|
if PDU1TestProcedure.all or PDU1TestProcedure.ping:
|
2022-07-04 15:22:53 +02:00
|
|
|
q.add_log_cmd("PDU1: Ping Test")
|
2020-12-29 11:29:03 +01:00
|
|
|
ping_data = bytearray([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
|
2022-07-04 15:22:53 +02:00
|
|
|
q.add_pus_tc(pack_ping_command(object_id, ping_data))
|
2020-12-29 11:29:03 +01:00
|
|
|
if PDU1TestProcedure.all or PDU1TestProcedure.read_temperature:
|
2022-07-04 15:22:53 +02:00
|
|
|
q.add_log_cmd("PDU1: Testing temperature reading")
|
|
|
|
q.add_pus_tc(
|
|
|
|
pack_get_param_command(
|
|
|
|
objb,
|
2022-09-01 16:58:31 +02:00
|
|
|
TableIds.HK,
|
2022-08-11 14:45:24 +02:00
|
|
|
PduHkTable.temperature.parameter_address,
|
|
|
|
PduHkTable.temperature.parameter_size,
|
2022-07-04 15:22:53 +02:00
|
|
|
)
|
2021-03-19 17:50:09 +01:00
|
|
|
)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def pdu1_req_hk_cmds(q: DefaultPusQueueHelper, op_code: str):
|
2024-05-08 10:49:20 +02:00
|
|
|
req_hk_cmds("PDU1", q, op_code, PDU_1_HANDLER_ID, (SetId.CORE, SetId.AUX))
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def info_on_pdu1(base: str) -> str:
|
|
|
|
return "PDU1: " + base + " on"
|
|
|
|
|
|
|
|
|
|
|
|
def info_off_pdu1(base: str) -> str:
|
|
|
|
return "PDU1: " + base + " off"
|
|
|
|
|
|
|
|
|
2023-06-19 17:16:00 +02:00
|
|
|
def pdu1_switch_cmds( # noqa C901: Complexity is okay here.
|
2023-11-22 10:17:05 +01:00
|
|
|
q: DefaultPusQueueHelper, cmd_str: str
|
2023-06-19 17:16:00 +02:00
|
|
|
): # noqa C901: Complexity okay here
|
2023-11-22 10:17:05 +01:00
|
|
|
if cmd_str in PowerOpCodes.TCS_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
tcs_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.TCS_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
tcs_off_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.SYRLINKS_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
syrlinks_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.SYRLINKS_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
syrlinks_off_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.STAR_TRACKER_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
startracker_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.STAR_TRACKER_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
startracker_off_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.MGT_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
mgt_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.MGT_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
mgt_off_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.SUS_N_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
sun_sensor_nominal_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.SUS_N_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
sun_sensor_nominal_off_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.SCEX_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
solar_cell_experiment_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.SCEX_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
solar_cell_experiment_off_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.PLOC_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
ploc_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.PLOC_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
ploc_off_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.ACS_A_ON:
|
2022-08-27 16:28:33 +02:00
|
|
|
acs_board_a_on_cmd(q)
|
2023-11-22 10:17:05 +01:00
|
|
|
elif cmd_str in PowerOpCodes.ACS_A_OFF:
|
2022-08-27 16:28:33 +02:00
|
|
|
acs_board_a_off_cmd(q)
|
|
|
|
|
|
|
|
|
|
|
|
def add_pdu1_common_defs(oce: OpCodeEntry):
|
|
|
|
oce.add(keys=PowerOpCodes.TCS_ON, info=info_on_pdu1(Pdu1InfoBase.TCS))
|
|
|
|
oce.add(keys=PowerOpCodes.TCS_OFF, info=info_off_pdu1(Pdu1InfoBase.TCS))
|
|
|
|
oce.add(keys=PowerOpCodes.STAR_TRACKER_ON, info=info_on_pdu1(Pdu1InfoBase.STR))
|
|
|
|
oce.add(keys=PowerOpCodes.STAR_TRACKER_OFF, info=info_off_pdu1(Pdu1InfoBase.STR))
|
|
|
|
oce.add(keys=PowerOpCodes.SUS_N_ON, info=info_on_pdu1(Pdu1InfoBase.SUS_N))
|
|
|
|
oce.add(keys=PowerOpCodes.SUS_N_OFF, info=info_off_pdu1(Pdu1InfoBase.SUS_N))
|
|
|
|
oce.add(keys=PowerOpCodes.ACS_A_ON, info=info_on_pdu1(Pdu1InfoBase.ACS_A))
|
|
|
|
oce.add(keys=PowerOpCodes.ACS_A_OFF, info=info_off_pdu1(Pdu1InfoBase.ACS_A))
|
|
|
|
oce.add(keys=PowerOpCodes.SYRLINKS_ON, info=info_on_pdu1(Pdu1InfoBase.SYRLINKS))
|
|
|
|
oce.add(keys=PowerOpCodes.SYRLINKS_OFF, info=info_off_pdu1(Pdu1InfoBase.SYRLINKS))
|
|
|
|
oce.add(keys=PowerOpCodes.MGT_ON, info=info_on_pdu1(Pdu1InfoBase.MGT))
|
|
|
|
oce.add(keys=PowerOpCodes.MGT_OFF, info=info_off_pdu1(Pdu1InfoBase.MGT))
|
|
|
|
oce.add(keys=PowerOpCodes.PLOC_ON, info=info_on_pdu1(Pdu1InfoBase.PLOC))
|
|
|
|
oce.add(keys=PowerOpCodes.PLOC_OFF, info=info_off_pdu1(Pdu1InfoBase.PLOC))
|
|
|
|
oce.add(keys=PowerOpCodes.SCEX_ON, info=info_on_pdu1(Pdu1InfoBase.SCEX))
|
|
|
|
oce.add(keys=PowerOpCodes.SCEX_OFF, info=info_off_pdu1(Pdu1InfoBase.SCEX))
|
|
|
|
|
|
|
|
|
2023-11-29 17:04:30 +01:00
|
|
|
def add_pdu1_subnodes(node: CmdTreeNode):
|
|
|
|
node.add_child(CmdTreeNode(PowerOpCodes.TCS_ON[0], info_on_pdu1(Pdu1InfoBase.TCS)))
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.TCS_OFF[0], info_off_pdu1(Pdu1InfoBase.TCS))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.STAR_TRACKER_ON[0], info_on_pdu1(Pdu1InfoBase.STR))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.STAR_TRACKER_OFF[0], info_off_pdu1(Pdu1InfoBase.STR))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.SUS_N_ON[0], info_on_pdu1(Pdu1InfoBase.SUS_N))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.SUS_N_OFF[0], info_off_pdu1(Pdu1InfoBase.SUS_N))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.ACS_A_ON[0], info_on_pdu1(Pdu1InfoBase.ACS_A))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.ACS_A_OFF[0], info_off_pdu1(Pdu1InfoBase.ACS_A))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.SYRLINKS_ON[0], info_on_pdu1(Pdu1InfoBase.SYRLINKS))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.SYRLINKS_OFF[0], info_off_pdu1(Pdu1InfoBase.SYRLINKS))
|
|
|
|
)
|
|
|
|
node.add_child(CmdTreeNode(PowerOpCodes.MGT_ON[0], info_on_pdu1(Pdu1InfoBase.MGT)))
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.MGT_OFF[0], info_off_pdu1(Pdu1InfoBase.MGT))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.PLOC_ON[0], info_on_pdu1(Pdu1InfoBase.PLOC))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.PLOC_OFF[0], info_off_pdu1(Pdu1InfoBase.PLOC))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.SCEX_ON[0], info_on_pdu1(Pdu1InfoBase.SCEX))
|
|
|
|
)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(PowerOpCodes.SCEX_OFF[0], info_off_pdu1(Pdu1InfoBase.SCEX))
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def create_pdu1_node() -> CmdTreeNode:
|
|
|
|
node = CmdTreeNode(
|
|
|
|
"pdu1", "P60 PCDU PDU1 device", hide_children_which_are_leaves=True
|
|
|
|
)
|
|
|
|
add_gomspace_nodes(node)
|
|
|
|
add_pdu1_subnodes(node)
|
|
|
|
node.add_child(
|
|
|
|
CmdTreeNode(
|
|
|
|
PowerOpCodes.PRINT_SWITCH_V_I[0], "PDU1: Print Switches, Voltages, Currents"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
return node
|
|
|
|
|
|
|
|
|
2022-10-18 10:44:32 +02:00
|
|
|
@tmtc_definitions_provider
|
|
|
|
def add_pdu1_cmds(defs: TmtcDefinitionWrapper):
|
|
|
|
oce = OpCodeEntry()
|
|
|
|
add_pdu1_common_defs(oce)
|
2022-10-18 11:08:28 +02:00
|
|
|
add_common_power_defs(oce)
|
2022-10-18 10:44:32 +02:00
|
|
|
add_gomspace_cmd_defs(oce)
|
|
|
|
oce.add(
|
|
|
|
keys=PowerOpCodes.PRINT_SWITCH_V_I,
|
|
|
|
info="PDU1: Print Switches, Voltages, Currents",
|
|
|
|
)
|
|
|
|
|
|
|
|
defs.add_service(
|
|
|
|
name=CustomServiceList.PDU1.value,
|
|
|
|
info="PDU1 Device",
|
|
|
|
op_code_entry=oce,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2023-01-12 14:11:30 +01:00
|
|
|
PDU1_DICT = {
|
|
|
|
Pdu1ChIndex.TCS: Pdu1InfoBase.TCS,
|
|
|
|
Pdu1ChIndex.STR: Pdu1InfoBase.STR,
|
|
|
|
Pdu1ChIndex.SYRLINKS: Pdu1InfoBase.SYRLINKS,
|
|
|
|
Pdu1ChIndex.MGT: Pdu1InfoBase.MGT,
|
|
|
|
Pdu1ChIndex.SCEX: Pdu1InfoBase.SCEX,
|
2023-05-11 17:55:15 +02:00
|
|
|
Pdu1ChIndex.PLOC: Pdu1InfoBase.PLOC,
|
2023-01-12 14:11:30 +01:00
|
|
|
Pdu1ChIndex.ACS_A: Pdu1InfoBase.ACS_A,
|
|
|
|
Pdu1ChIndex.SUS_N: Pdu1InfoBase.SUS_N,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def pdu1_on_cmd(idx: Pdu1ChIndex, q: DefaultPusQueueHelper):
|
|
|
|
generic_on_cmd(PDU_1_HANDLER_ID, q, PDU1_DICT[idx], idx)
|
|
|
|
|
|
|
|
|
|
|
|
def pdu1_off_cmd(idx: Pdu1ChIndex, q: DefaultPusQueueHelper):
|
|
|
|
generic_off_cmd(PDU_1_HANDLER_ID, q, PDU1_DICT[idx], idx)
|
|
|
|
|
|
|
|
|
2022-08-27 16:28:33 +02:00
|
|
|
def tcs_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.TCS, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_tcs_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.TCS)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def tcs_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_off_cmd(Pdu1ChIndex.TCS, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_tcs_off_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.TCS)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def syrlinks_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.SYRLINKS, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_syrlinks_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.SYRLINKS)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def syrlinks_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_off_cmd(Pdu1ChIndex.SYRLINKS, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_syrlinks_off_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.SYRLINKS)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def startracker_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.STR, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_startracker_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.STR)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def startracker_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.STR, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_startracker_off_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.STR)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def mgt_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.MGT, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_mgt_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.MGT)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def mgt_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_off_cmd(Pdu1ChIndex.MGT, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_mgt_off_cmd() -> PusTelecommand:
|
2023-03-28 16:07:34 +02:00
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.MGT)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def sun_sensor_nominal_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.SUS_N, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_sun_sensor_nominal_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.SUS_N)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def sun_sensor_nominal_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_off_cmd(Pdu1ChIndex.SUS_N, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_sun_sensor_nominal_off_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.SUS_N)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def solar_cell_experiment_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.SCEX, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_solar_cell_experiment_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.SCEX)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def solar_cell_experiment_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_off_cmd(Pdu1ChIndex.SCEX, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_solar_cell_experiment_off_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.SCEX)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def ploc_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.PLOC, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_ploc_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.PLOC)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def ploc_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_off_cmd(Pdu1ChIndex.PLOC, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_ploc_off_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.PLOC)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def acs_board_a_on_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_on_cmd(Pdu1ChIndex.ACS_A, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_acs_board_a_on_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_on_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.ACS_A)
|
2022-08-27 16:28:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def acs_board_a_off_cmd(q: DefaultPusQueueHelper):
|
2023-01-12 14:11:30 +01:00
|
|
|
pdu1_off_cmd(Pdu1ChIndex.ACS_A, q)
|
|
|
|
|
|
|
|
|
|
|
|
def create_acs_board_a_off_cmd() -> PusTelecommand:
|
|
|
|
return create_generic_off_cmd(PDU_1_HANDLER_ID, Pdu1ChIndex.ACS_A)
|