WIP: develop_update #706

Draft
muellerr wants to merge 710 commits from eive/fsfw:develop_update into development
1037 changed files with 15015 additions and 23459 deletions
Showing only changes of commit 6dd6f28db0 - Show all commits

View File

@ -55,6 +55,13 @@ void PowerSwitcher::turnOff() {
state = WAIT_OFF;
}
bool PowerSwitcher::active() {
if(state == WAIT_OFF or state == WAIT_ON) {
return true;
}
return false;
}
PowerSwitcher::SwitchReturn_t PowerSwitcher::howManySwitches() {
if (secondSwitch == power::NO_SWITCH) {
return ONE_SWITCH;

View File

@ -22,6 +22,7 @@ class PowerSwitcher : public HasReturnvaluesIF {
State_t setStartState = SWITCH_IS_OFF);
void turnOn();
void turnOff();
bool active();
void doStateMachine();
State_t getState();
ReturnValue_t checkSwitchState();