diff --git a/mission/system/CMakeLists.txt b/mission/system/CMakeLists.txt index 59418a07..b1425512 100644 --- a/mission/system/CMakeLists.txt +++ b/mission/system/CMakeLists.txt @@ -5,6 +5,7 @@ target_sources(${LIB_EIVE_MISSION} PRIVATE PayloadSubsystem.cpp AcsBoardAssembly.cpp + RwAssembly.cpp SusAssembly.cpp DualLanePowerStateMachine.cpp PowerStateMachineBase.cpp diff --git a/mission/system/RwAssembly.cpp b/mission/system/RwAssembly.cpp new file mode 100644 index 00000000..36455c23 --- /dev/null +++ b/mission/system/RwAssembly.cpp @@ -0,0 +1,7 @@ +#include "RwAssembly.h" + +RwAssembly::RwAssembly(object_id_t objectId, object_id_t parentId, PowerSwitchIF* pwrSwitcher, + power::Switch_t switcher, RwHelper helper) + : AssemblyBase(objectId, parentId), helper(helper) { + +} diff --git a/mission/system/RwAssembly.h b/mission/system/RwAssembly.h new file mode 100644 index 00000000..e8705ed1 --- /dev/null +++ b/mission/system/RwAssembly.h @@ -0,0 +1,21 @@ +#ifndef MISSION_SYSTEM_RWASS_H_ +#define MISSION_SYSTEM_RWASS_H_ + +#include + +struct RwHelper { + RwHelper(std::array rwIds) : rwIds(rwIds) {} + + std::array rwIds = {}; +}; + +class RwAssembly: public AssemblyBase { +public: + RwAssembly(object_id_t objectId, object_id_t parentId, PowerSwitchIF* pwrSwitcher, + power::Switch_t switcher, RwHelper helper); +private: + RwHelper helper; + PowerSwitcher pwrSwitcher; +}; + +#endif /* MISSION_SYSTEM_RWASS_H_ */