that should be all required API
This commit is contained in:
parent
9d42005816
commit
7c5f21e83c
@ -15,6 +15,8 @@ from eive_tmtc.tmtc.power.common_power import (
|
|||||||
generic_off_cmd,
|
generic_off_cmd,
|
||||||
add_gomspace_cmd_defs,
|
add_gomspace_cmd_defs,
|
||||||
pack_common_power_cmds,
|
pack_common_power_cmds,
|
||||||
|
create_generic_on_cmd,
|
||||||
|
create_generic_off_cmd,
|
||||||
SetIds,
|
SetIds,
|
||||||
add_common_power_defs,
|
add_common_power_defs,
|
||||||
)
|
)
|
||||||
@ -257,61 +259,117 @@ def reaction_wheel_on_cmd(q: DefaultPusQueueHelper):
|
|||||||
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.RW, Pdu2ChIndex.RW)
|
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.RW, Pdu2ChIndex.RW)
|
||||||
|
|
||||||
|
|
||||||
|
def create_reaction_wheel_on_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.RW)
|
||||||
|
|
||||||
|
|
||||||
def reaction_wheel_off_cmd(q: DefaultPusQueueHelper):
|
def reaction_wheel_off_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.RW, Pdu2ChIndex.RW)
|
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.RW, Pdu2ChIndex.RW)
|
||||||
|
|
||||||
|
|
||||||
|
def create_reaction_wheel_off_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_off_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.RW)
|
||||||
|
|
||||||
|
|
||||||
def heater_on_cmd(q: DefaultPusQueueHelper):
|
def heater_on_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.HEATER, Pdu2ChIndex.HEATER)
|
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.HEATER, Pdu2ChIndex.HEATER)
|
||||||
|
|
||||||
|
|
||||||
|
def create_heater_on_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.HEATER)
|
||||||
|
|
||||||
|
|
||||||
def heater_off_cmd(q: DefaultPusQueueHelper):
|
def heater_off_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.HEATER, Pdu2ChIndex.HEATER)
|
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.HEATER, Pdu2ChIndex.HEATER)
|
||||||
|
|
||||||
|
|
||||||
|
def create_heater_off_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.HEATER)
|
||||||
|
|
||||||
|
|
||||||
def sus_red_on_cmd(q: DefaultPusQueueHelper):
|
def sus_red_on_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.SUS_R, Pdu2ChIndex.SUS_R)
|
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.SUS_R, Pdu2ChIndex.SUS_R)
|
||||||
|
|
||||||
|
|
||||||
|
def create_sus_red_on_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.SUS_R)
|
||||||
|
|
||||||
|
|
||||||
def sus_red_off_cmd(q: DefaultPusQueueHelper):
|
def sus_red_off_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.SUS_R, Pdu2ChIndex.SUS_R)
|
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.SUS_R, Pdu2ChIndex.SUS_R)
|
||||||
|
|
||||||
|
|
||||||
|
def create_sus_red_off_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_off_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.SUS_R)
|
||||||
|
|
||||||
|
|
||||||
def solar_array_deployment_on_cmd(q: DefaultPusQueueHelper):
|
def solar_array_deployment_on_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_on_cmd(
|
generic_on_cmd(
|
||||||
PDU_2_HANDLER_ID, q, Pdu2InfoBase.SOLAR_ARRAY_DEPL, Pdu2ChIndex.SOLAR_ARRAY_DEPL
|
PDU_2_HANDLER_ID, q, Pdu2InfoBase.SOLAR_ARRAY_DEPL, Pdu2ChIndex.SOLAR_ARRAY_DEPL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def create_solar_array_deployment_on_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.SOLAR_ARRAY_DEPL)
|
||||||
|
|
||||||
|
|
||||||
def solar_array_deployment_off_cmd(q: DefaultPusQueueHelper):
|
def solar_array_deployment_off_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_off_cmd(
|
generic_off_cmd(
|
||||||
PDU_2_HANDLER_ID, q, Pdu2InfoBase.SOLAR_ARRAY_DEPL, Pdu2ChIndex.SOLAR_ARRAY_DEPL
|
PDU_2_HANDLER_ID, q, Pdu2InfoBase.SOLAR_ARRAY_DEPL, Pdu2ChIndex.SOLAR_ARRAY_DEPL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def create_solar_array_deployment_off_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_off_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.SOLAR_ARRAY_DEPL)
|
||||||
|
|
||||||
|
|
||||||
def pl_pcdu_bat_red_on_cmd(q: DefaultPusQueueHelper):
|
def pl_pcdu_bat_red_on_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_on_cmd(
|
generic_on_cmd(
|
||||||
PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_PCDU_BAT_RED, Pdu2ChIndex.PL_PCDU_BAT_RED
|
PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_PCDU_BAT_RED, Pdu2ChIndex.PL_PCDU_BAT_RED
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def create_pl_pcdu_bat_red_on_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.PL_PCDU_BAT_RED)
|
||||||
|
|
||||||
|
|
||||||
def pl_pcdu_bat_red_off_cmd(q: DefaultPusQueueHelper):
|
def pl_pcdu_bat_red_off_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_off_cmd(
|
generic_off_cmd(
|
||||||
PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_PCDU_BAT_RED, Pdu2ChIndex.PL_PCDU_BAT_RED
|
PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_PCDU_BAT_RED, Pdu2ChIndex.PL_PCDU_BAT_RED
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def create_pl_pcdu_bat_red_off_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_off_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.PL_PCDU_BAT_RED)
|
||||||
|
|
||||||
|
|
||||||
def acs_board_b_side_on_cmd(q: DefaultPusQueueHelper):
|
def acs_board_b_side_on_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.ACS_B, Pdu2ChIndex.ACS_B)
|
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.ACS_B, Pdu2ChIndex.ACS_B)
|
||||||
|
|
||||||
|
|
||||||
|
def create_acs_board_b_side_on_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.ACS_B)
|
||||||
|
|
||||||
|
|
||||||
def acs_board_b_side_off_cmd(q: DefaultPusQueueHelper):
|
def acs_board_b_side_off_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.ACS_B, Pdu2ChIndex.ACS_B)
|
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.ACS_B, Pdu2ChIndex.ACS_B)
|
||||||
|
|
||||||
|
|
||||||
|
def create_acs_board_b_side_off_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_off_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.ACS_B)
|
||||||
|
|
||||||
|
|
||||||
def payload_camera_on_cmd(q: DefaultPusQueueHelper):
|
def payload_camera_on_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_CAM, Pdu2ChIndex.PL_CAM)
|
generic_on_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_CAM, Pdu2ChIndex.PL_CAM)
|
||||||
|
|
||||||
|
|
||||||
|
def create_payload_camera_on_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.PL_CAM)
|
||||||
|
|
||||||
|
|
||||||
def payload_camera_off_cmd(q: DefaultPusQueueHelper):
|
def payload_camera_off_cmd(q: DefaultPusQueueHelper):
|
||||||
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_CAM, Pdu2ChIndex.PL_CAM)
|
generic_off_cmd(PDU_2_HANDLER_ID, q, Pdu2InfoBase.PL_CAM, Pdu2ChIndex.PL_CAM)
|
||||||
|
|
||||||
|
|
||||||
|
def create_payload_camera_off_cmd() -> PusTelecommand:
|
||||||
|
return create_generic_on_cmd(PDU_2_HANDLER_ID, Pdu2ChIndex.PL_CAM)
|
||||||
|
Loading…
Reference in New Issue
Block a user