v1.15.0 #311
@ -54,9 +54,6 @@ ReturnValue_t SolarArrayDeploymentHandler::performOperation(uint8_t operationCod
|
|||||||
}
|
}
|
||||||
readCommandQueue();
|
readCommandQueue();
|
||||||
handleStateMachine();
|
handleStateMachine();
|
||||||
if (firstCycle) {
|
|
||||||
firstCycle = false;
|
|
||||||
}
|
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,7 +211,7 @@ bool SolarArrayDeploymentHandler::autonomousDeplForFile(sd::SdCard sdCard, const
|
|||||||
}
|
}
|
||||||
// Uptime has increased by X seconds so we need to update the uptime count inside the file
|
// Uptime has increased by X seconds so we need to update the uptime count inside the file
|
||||||
secsSinceBoot += Clock::getUptime().tv_sec;
|
secsSinceBoot += Clock::getUptime().tv_sec;
|
||||||
if (stateSwitch or firstCycle) {
|
if (stateSwitch or firstAutonomousCycle) {
|
||||||
if (deplState == AutonomousDeplState::FIRST_BURN or
|
if (deplState == AutonomousDeplState::FIRST_BURN or
|
||||||
deplState == AutonomousDeplState::SECOND_BURN) {
|
deplState == AutonomousDeplState::SECOND_BURN) {
|
||||||
startFsmOn(config::SA_DEPL_BURN_TIME_SECS, dryRun);
|
startFsmOn(config::SA_DEPL_BURN_TIME_SECS, dryRun);
|
||||||
@ -245,6 +242,9 @@ bool SolarArrayDeploymentHandler::autonomousDeplForFile(sd::SdCard sdCard, const
|
|||||||
}
|
}
|
||||||
of << "secs_since_start: " << std::to_string(secsSinceBoot) << "\n";
|
of << "secs_since_start: " << std::to_string(secsSinceBoot) << "\n";
|
||||||
}
|
}
|
||||||
|
if (firstAutonomousCycle) {
|
||||||
|
firstAutonomousCycle = false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ class SolarArrayDeploymentHandler : public ExecutableObjectIF,
|
|||||||
FsmInfo fsmInfo;
|
FsmInfo fsmInfo;
|
||||||
StateMachine stateMachine = IDLE;
|
StateMachine stateMachine = IDLE;
|
||||||
bool actionActive = false;
|
bool actionActive = false;
|
||||||
bool firstCycle = true;
|
bool firstAutonomousCycle = true;
|
||||||
ActionId_t activeCmd = HasActionsIF::INVALID_ACTION_ID;
|
ActionId_t activeCmd = HasActionsIF::INVALID_ACTION_ID;
|
||||||
std::optional<uint64_t> initUptime;
|
std::optional<uint64_t> initUptime;
|
||||||
PeriodicOperationDivider opDivider = PeriodicOperationDivider(5);
|
PeriodicOperationDivider opDivider = PeriodicOperationDivider(5);
|
||||||
|
Loading…
Reference in New Issue
Block a user