continue stack 5v
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
2022-12-21 14:34:07 +01:00
parent b75102f670
commit 164bfc3521
2 changed files with 41 additions and 6 deletions

View File

@ -5,17 +5,22 @@
#include "mission/devices/devicedefinitions/GomspaceDefinitions.h"
enum class StackCommander { RAD_SENSOR = 0, PL_PCDU = 1 };
class Stack5VHandler {
public:
Stack5VHandler(PowerSwitchIF& switcher);
ReturnValue_t commandSwitchOn();
ReturnValue_t commandSwitchOff();
ReturnValue_t deviceToOn(StackCommander commander);
ReturnValue_t deviceToOff(StackCommander commander);
bool isSwitchOn();
private:
MutexIF* stackLock;
PowerSwitchIF& switcher;
bool radSensorCommandedOn = false;
bool plPcduCommandedOn = false;
bool radSensorIsOn = false;
bool plPcduIsOn = false;
pcdu::Switches stackSwitch = pcdu::Switches::P60_DOCK_5V_STACK;