2 seconds are important #492
@ -215,14 +215,14 @@ bool SolarArrayDeploymentHandler::autonomousDeplForFile(sd::SdCard sdCard, const
|
|||||||
stateSwitch = true;
|
stateSwitch = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ((secsSinceBoot > FIRST_BURN_START_TIME) and (secsSinceBoot < FIRST_BURN_END_TIME)) {
|
if ((secsSinceBoot >= FIRST_BURN_START_TIME) and (secsSinceBoot < FIRST_BURN_END_TIME)) {
|
||||||
switchCheck(AutonomousDeplState::FIRST_BURN);
|
switchCheck(AutonomousDeplState::FIRST_BURN);
|
||||||
} else if ((secsSinceBoot > WAIT_START_TIME) and (secsSinceBoot < WAIT_END_TIME)) {
|
} else if ((secsSinceBoot >= WAIT_START_TIME) and (secsSinceBoot < WAIT_END_TIME)) {
|
||||||
switchCheck(AutonomousDeplState::WAIT);
|
switchCheck(AutonomousDeplState::WAIT);
|
||||||
} else if ((secsSinceBoot > SECOND_BURN_START_TIME) and
|
} else if ((secsSinceBoot >= SECOND_BURN_START_TIME) and
|
||||||
(secsSinceBoot < SECOND_BURN_END_TIME)) {
|
(secsSinceBoot < SECOND_BURN_END_TIME)) {
|
||||||
switchCheck(AutonomousDeplState::SECOND_BURN);
|
switchCheck(AutonomousDeplState::SECOND_BURN);
|
||||||
} else if (secsSinceBoot > SECOND_BURN_END_TIME) {
|
} else if (secsSinceBoot >= SECOND_BURN_END_TIME) {
|
||||||
switchCheck(AutonomousDeplState::DONE);
|
switchCheck(AutonomousDeplState::DONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user