bugfix for autonomous handling
This commit is contained in:
parent
69f34acbd2
commit
5d721706f3
@ -41,7 +41,7 @@ static constexpr uint32_t SA_DEPL_WAIT_TIME_SECS = 45 * 60;
|
|||||||
// HW constraints (current limit) mean that the GPIO channels need to be switched on in alternation
|
// HW constraints (current limit) mean that the GPIO channels need to be switched on in alternation
|
||||||
static constexpr uint32_t SA_DEPL_CHANNEL_ALTERNATION_INTERVAL_SECS = 5;
|
static constexpr uint32_t SA_DEPL_CHANNEL_ALTERNATION_INTERVAL_SECS = 5;
|
||||||
// Maximum allowed burn time allowed by the software.
|
// Maximum allowed burn time allowed by the software.
|
||||||
static constexpr uint32_t SA_DEPL_MAX_BURN_TIME = 120;
|
static constexpr uint32_t SA_DEPL_MAX_BURN_TIME = 180;
|
||||||
|
|
||||||
} // namespace config
|
} // namespace config
|
||||||
|
|
||||||
|
@ -89,7 +89,6 @@ bool SolarArrayDeploymentHandler::autonomousDeplForFile(const char* filename, bo
|
|||||||
bool stateSwitch = false;
|
bool stateSwitch = false;
|
||||||
uint32_t secsSinceBoot = 0;
|
uint32_t secsSinceBoot = 0;
|
||||||
while (std::getline(file, line)) {
|
while (std::getline(file, line)) {
|
||||||
if (lineNum == 0) {
|
|
||||||
std::istringstream iss(line);
|
std::istringstream iss(line);
|
||||||
if (lineNum == 0) {
|
if (lineNum == 0) {
|
||||||
iss >> word;
|
iss >> word;
|
||||||
@ -140,7 +139,6 @@ bool SolarArrayDeploymentHandler::autonomousDeplForFile(const char* filename, bo
|
|||||||
switchCheck(AutonomousDeplState::DONE);
|
switchCheck(AutonomousDeplState::DONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
lineNum++;
|
lineNum++;
|
||||||
}
|
}
|
||||||
bool updateUptime = false;
|
bool updateUptime = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user