5V stack commanding for device handlers #335
@ -66,14 +66,6 @@ void PayloadPcduHandler::doShutDown() {
|
|||||||
if (retval == BUSY) {
|
if (retval == BUSY) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state = States::STACK_5V_PENDING;
|
|
||||||
}
|
|
||||||
if (state == States::STACK_5V_PENDING) {
|
|
||||||
if (not stackHandler.isSwitchOn()) {
|
|
||||||
state = States::STACK_5V_CORRECT;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (state == States::STACK_5V_CORRECT) {
|
|
||||||
state = States::PL_PCDU_OFF;
|
state = States::PL_PCDU_OFF;
|
||||||
// No need to set mode _MODE_POWER_DOWN, power switching was already handled
|
// No need to set mode _MODE_POWER_DOWN, power switching was already handled
|
||||||
setMode(MODE_OFF);
|
setMode(MODE_OFF);
|
||||||
@ -93,7 +85,7 @@ void PayloadPcduHandler::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
|
|||||||
gpioIF->pullLow(gpioIds::PLPCDU_ENB_TX);
|
gpioIF->pullLow(gpioIds::PLPCDU_ENB_TX);
|
||||||
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT0);
|
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT0);
|
||||||
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT1);
|
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT1);
|
||||||
state = States::POWER_CHANNELS_ON;
|
state = States::STACK_5V_CORRECT;
|
||||||
}
|
}
|
||||||
DeviceHandlerBase::doTransition(modeFrom, subModeFrom);
|
DeviceHandlerBase::doTransition(modeFrom, subModeFrom);
|
||||||
}
|
}
|
||||||
|
2
tmtc
2
tmtc
@ -1 +1 @@
|
|||||||
Subproject commit 24f6a59cf98a01676beba37280d8840c3d0a3dbe
|
Subproject commit c4dbf3d8bedc7be1848945629c6367586390c4f4
|
Loading…
x
Reference in New Issue
Block a user