This commit is contained in:
@ -6,6 +6,7 @@ target_sources(
|
||||
ComSubsystem.cpp
|
||||
PayloadSubsystem.cpp
|
||||
AcsBoardAssembly.cpp
|
||||
Stack5VHandler.cpp
|
||||
SusAssembly.cpp
|
||||
RwAssembly.cpp
|
||||
DualLanePowerStateMachine.cpp
|
||||
|
9
mission/system/objects/Stack5VHandler.cpp
Normal file
9
mission/system/objects/Stack5VHandler.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include "Stack5VHandler.h"
|
||||
|
||||
Stack5VHandler::Stack5VHandler(PowerSwitchIF& switcher) : switcher(switcher) {}
|
||||
|
||||
ReturnValue_t Stack5VHandler::commandSwitchOn() { return returnvalue::OK; }
|
||||
|
||||
ReturnValue_t Stack5VHandler::commandSwitchOff() { return returnvalue::OK; }
|
||||
|
||||
bool Stack5VHandler::isSwitchOn() { return false; }
|
24
mission/system/objects/Stack5VHandler.h
Normal file
24
mission/system/objects/Stack5VHandler.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef MISSION_SYSTEM_OBJECTS_STACK5VHANDLER_H_
|
||||
#define MISSION_SYSTEM_OBJECTS_STACK5VHANDLER_H_
|
||||
|
||||
#include <fsfw/power/PowerSwitchIF.h>
|
||||
|
||||
#include "mission/devices/devicedefinitions/GomspaceDefinitions.h"
|
||||
|
||||
class Stack5VHandler {
|
||||
public:
|
||||
Stack5VHandler(PowerSwitchIF& switcher);
|
||||
|
||||
ReturnValue_t commandSwitchOn();
|
||||
ReturnValue_t commandSwitchOff();
|
||||
|
||||
bool isSwitchOn();
|
||||
|
||||
private:
|
||||
PowerSwitchIF& switcher;
|
||||
bool radSensorIsOn = false;
|
||||
bool plPcduIsOn = false;
|
||||
pcdu::Switches stackSwitch = pcdu::Switches::P60_DOCK_5V_STACK;
|
||||
};
|
||||
|
||||
#endif /* MISSION_SYSTEM_OBJECTS_STACK5VHANDLER_H_ */
|
Reference in New Issue
Block a user