diff --git a/common/config/eive/objects.h b/common/config/eive/objects.h index 5b9ec8a0..b410c8a3 100644 --- a/common/config/eive/objects.h +++ b/common/config/eive/objects.h @@ -128,9 +128,10 @@ enum commonObjects : uint32_t { TCS_BOARD_ASS = 0x73000003, RW_ASS = 0x73000004, CAM_SWITCHER = 0x73000006, + EIVE_SYSTEM = 0x73010000, ACS_SUBSYSTEM = 0x73010001, PL_SUBSYSTEM = 0x73010002, - EIVE_SYSTEM = 0x73010000, + TCS_SUBSYSTEM = 0x73010003, TM_FUNNEL = 0x73000100, PUS_TM_FUNNEL = 0x73000101, CFDP_TM_FUNNEL = 0x73000102, diff --git a/mission/system/tree/CMakeLists.txt b/mission/system/tree/CMakeLists.txt index 6e7f1619..30bcfcb9 100644 --- a/mission/system/tree/CMakeLists.txt +++ b/mission/system/tree/CMakeLists.txt @@ -1,2 +1,2 @@ -target_sources(${LIB_EIVE_MISSION} PRIVATE acsModeTree.cpp payloadModeTree.cpp +target_sources(${LIB_EIVE_MISSION} PRIVATE acsModeTree.cpp payloadModeTree.cpp tcsModeTree.cpp system.cpp util.cpp) diff --git a/mission/system/tree/tcsModeTree.cpp b/mission/system/tree/tcsModeTree.cpp new file mode 100644 index 00000000..a6f2ba37 --- /dev/null +++ b/mission/system/tree/tcsModeTree.cpp @@ -0,0 +1,12 @@ +#include "tcsModeTree.h" + +#include "fsfw/subsystem/Subsystem.h" +#include "mission/system/tree/util.h" +#include "eive/objects.h" + +Subsystem satsystem::tcs::SUBSYSTEM(objects::TCS_SUBSYSTEM, 12, 24); + +namespace { +// Alias for checker function +const auto check = subsystem::checkInsert; +} diff --git a/mission/system/tree/tcsModeTree.h b/mission/system/tree/tcsModeTree.h new file mode 100644 index 00000000..f223e87b --- /dev/null +++ b/mission/system/tree/tcsModeTree.h @@ -0,0 +1,15 @@ +#ifndef MISSION_SYSTEM_TREE_TCSMODETREE_H_ +#define MISSION_SYSTEM_TREE_TCSMODETREE_H_ + +class Subsystem; + +namespace satsystem { +namespace tcs { + +extern Subsystem SUBSYSTEM; +void init(); + +} // namespace tcs +} // namespace satsystem + +#endif /* MISSION_SYSTEM_TREE_TCSMODETREE_H_ */