From 1ecc34800c51c4ee2e504463df8c879aa46e8ff3 Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Tue, 28 Mar 2023 14:50:14 +0200 Subject: [PATCH] new enum class for pdu channesl --- eive_tmtc/tmtc/power/power.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/eive_tmtc/tmtc/power/power.py b/eive_tmtc/tmtc/power/power.py index c748b00..5d397c5 100644 --- a/eive_tmtc/tmtc/power/power.py +++ b/eive_tmtc/tmtc/power/power.py @@ -49,6 +49,30 @@ class PcduSetIds(enum.IntEnum): SWITCHER_SET = 0 +class PcduSwitches(enum.IntEnum): + PDU1_CH0_TCS_BOARD_3V3 = 0 + PDU1_CH1_SYRLINKS_12V = 1 + PDU1_CH2_STAR_TRACKER_5V = 2 + PDU1_CH3_MGT_5V = 3 + PDU1_CH4_SUS_NOMINAL_3V3 = 4 + PDU1_CH5_SOLAR_CELL_EXP_5V = 5 + PDU1_CH6_PLOC_12V = 6 + PDU1_CH7_ACS_A_SIDE_3V3 = 7 + PDU1_CH8_UNOCCUPIED = 8 + + PDU2_CH0_Q7S = 9 + PDU2_CH1_PL_PCDU_BATT_0_14V8 = 10 + PDU2_CH2_RW_5V = 11 + PDU2_CH3_TCS_BOARD_HEATER_IN_8V = 12 + PDU2_CH4_SUS_REDUNDANT_3V3 = 13 + PDU2_CH5_DEPLOYMENT_MECHANISM_8V = 14 + PDU2_CH6_PL_PCDU_BATT_1_14V8 = 15 + PDU2_CH7_ACS_BOARD_SIDE_B_3V3 = 16 + PDU2_CH8_PAYLOAD_CAMERA = 17 + + P60_DOCK_5V_STACK = 18 + + def pack_power_commands(q: DefaultPusQueueHelper, op_code: str): pdu1_switch_cmds(q, op_code) pdu2_switch_cmds(q, op_code)