added 5v stack command
This commit is contained in:
parent
b981878c58
commit
7df7ced43e
@ -321,6 +321,11 @@ ReturnValue_t PCDUHandler::sendSwitchCommand(uint8_t switchNr, ReturnValue_t onO
|
|||||||
pdu = ObjectManager::instance()->get<GomspaceDeviceHandler>(objects::PDU2_HANDLER);
|
pdu = ObjectManager::instance()->get<GomspaceDeviceHandler>(objects::PDU2_HANDLER);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case pcdu::P60_DOCK_5V_STACK: {
|
||||||
|
memoryAddress = P60Dock::CONFIG_ADDRESS_OUT_EN_5V_STACK;
|
||||||
|
pdu = ObjectManager::instance()->get<GomspaceDeviceHandler>(objects::P60DOCK_HANDLER);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
sif::error << "PCDUHandler::sendSwitchCommand: Invalid switch number " << std::endl;
|
sif::error << "PCDUHandler::sendSwitchCommand: Invalid switch number " << std::endl;
|
||||||
|
@ -108,6 +108,8 @@ enum class SetIds : uint32_t { CORE = 1, AUX = 2, CONFIG = 3 };
|
|||||||
|
|
||||||
namespace P60Dock {
|
namespace P60Dock {
|
||||||
|
|
||||||
|
static const uint16_t CONFIG_ADDRESS_OUT_EN_5V_STACK = 0x72;
|
||||||
|
|
||||||
namespace pool {
|
namespace pool {
|
||||||
|
|
||||||
enum Ids : lp_id_t {
|
enum Ids : lp_id_t {
|
||||||
@ -733,7 +735,9 @@ enum Switches : power::Switch_t {
|
|||||||
PDU2_CH5_DEPLOYMENT_MECHANISM_8V,
|
PDU2_CH5_DEPLOYMENT_MECHANISM_8V,
|
||||||
PDU2_CH6_PL_PCDU_BATT_1_14V8,
|
PDU2_CH6_PL_PCDU_BATT_1_14V8,
|
||||||
PDU2_CH7_ACS_BOARD_SIDE_B_3V3,
|
PDU2_CH7_ACS_BOARD_SIDE_B_3V3,
|
||||||
PDU2_CH8_PAYLOAD_CAMERA
|
PDU2_CH8_PAYLOAD_CAMERA,
|
||||||
|
|
||||||
|
P60_DOCK_5V_STACK
|
||||||
};
|
};
|
||||||
|
|
||||||
static constexpr uint8_t NUMBER_OF_SWITCHES = 18;
|
static constexpr uint8_t NUMBER_OF_SWITCHES = 18;
|
||||||
|
Loading…
Reference in New Issue
Block a user