this is annoying
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
2022-12-21 14:43:12 +01:00
parent 164bfc3521
commit dcf6367314
2 changed files with 29 additions and 3 deletions

View File

@ -6,6 +6,7 @@
#include "mission/devices/devicedefinitions/GomspaceDefinitions.h"
enum class StackCommander { RAD_SENSOR = 0, PL_PCDU = 1 };
enum class HandlerState { SWITCH_PENDING, IDLE };
class Stack5VHandler {
public:
@ -19,8 +20,10 @@ class Stack5VHandler {
private:
MutexIF* stackLock;
PowerSwitchIF& switcher;
bool radSensorCommandedOn = false;
bool switchIsOn = false;
HandlerState handlerState = HandlerState::IDLE;
bool plPcduCommandedOn = false;
bool radSensorCommandedOn = false;
bool radSensorIsOn = false;
bool plPcduIsOn = false;
pcdu::Switches stackSwitch = pcdu::Switches::P60_DOCK_5V_STACK;