v1.15.0 #311
@ -184,17 +184,13 @@ void SolarArrayDeploymentHandler::handleStateMachine() {
|
|||||||
mainLineSwitcher.sendSwitchCommand(mainLineSwitch, PowerSwitchIF::SWITCH_ON);
|
mainLineSwitcher.sendSwitchCommand(mainLineSwitch, PowerSwitchIF::SWITCH_ON);
|
||||||
mainSwitchCountdown.setTimeout(mainLineSwitcher.getSwitchDelayMs());
|
mainSwitchCountdown.setTimeout(mainLineSwitcher.getSwitchDelayMs());
|
||||||
stateMachine = WAIT_MAIN_POWER_ON;
|
stateMachine = WAIT_MAIN_POWER_ON;
|
||||||
if (DEBUG_MODE) {
|
sif::info << "S/A Deployment: Deployment power line on" << std::endl;
|
||||||
sif::debug << "SA DEPL FSM: MAIN_POWER_ON done -> WAIT_MAIN_POWER_ON" << std::endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (stateMachine == MAIN_POWER_OFF) {
|
if (stateMachine == MAIN_POWER_OFF) {
|
||||||
// These should never fail
|
// These should never fail
|
||||||
allOff();
|
allOff();
|
||||||
stateMachine = WAIT_MAIN_POWER_OFF;
|
stateMachine = WAIT_MAIN_POWER_OFF;
|
||||||
if (DEBUG_MODE) {
|
sif::info << "S/A Deployment: Deployment power line off" << std::endl;
|
||||||
sif::debug << "SA DEPL FSM: MAIN_POWER_OFF done -> WAIT_MAIN_POWER_OFF" << std::endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (stateMachine == WAIT_MAIN_POWER_ON) {
|
if (stateMachine == WAIT_MAIN_POWER_ON) {
|
||||||
if (checkMainPowerOn()) {
|
if (checkMainPowerOn()) {
|
||||||
@ -209,6 +205,7 @@ void SolarArrayDeploymentHandler::handleStateMachine() {
|
|||||||
if (DEBUG_MODE) {
|
if (DEBUG_MODE) {
|
||||||
sif::debug << "SA DEPL FSM: WAIT_MAIN_POWER_OFF done -> FSM DONE" << std::endl;
|
sif::debug << "SA DEPL FSM: WAIT_MAIN_POWER_OFF done -> FSM DONE" << std::endl;
|
||||||
}
|
}
|
||||||
|
sif::info << "S/A Deployment: FSM done" << std::endl;
|
||||||
finishFsm(returnvalue::OK);
|
finishFsm(returnvalue::OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -221,9 +218,7 @@ void SolarArrayDeploymentHandler::handleStateMachine() {
|
|||||||
sa1On();
|
sa1On();
|
||||||
fsmInfo.alternationDummy = true;
|
fsmInfo.alternationDummy = true;
|
||||||
}
|
}
|
||||||
if (DEBUG_MODE) {
|
sif::info << "S/A Deployment: Burning" << std::endl;
|
||||||
sif::debug << "SA DEPL FSM: SWITCH_DEPL_GPIOS done -> BURNING" << std::endl;
|
|
||||||
}
|
|
||||||
stateMachine = BURNING;
|
stateMachine = BURNING;
|
||||||
}
|
}
|
||||||
if (stateMachine == BURNING) {
|
if (stateMachine == BURNING) {
|
||||||
|
Loading…
Reference in New Issue
Block a user