diff --git a/CHANGELOG.md b/CHANGELOG.md index 4710538c..f6c80242 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ will consitute of a breaking change warranting a new major release: - PLOC SUPV latchup report could not be handled previously. - Bugfix in PLOC SUPV latchup report parsing. - Bugfix in PLOC MPSoC HK set: Set and variables were not set valid. +- The `PTG_CTRL_NO_ATTITUDE_INFORMATION` will now actually trigger a fallback into safe mode + and is triggered by the `AcsController` now. ## Changed diff --git a/mission/system/acs/StrFdir.cpp b/mission/system/acs/StrFdir.cpp index 83bd27fa..91e83263 100644 --- a/mission/system/acs/StrFdir.cpp +++ b/mission/system/acs/StrFdir.cpp @@ -1,6 +1,8 @@ #include "StrFdir.h" -#include "mission/acs/defs.h" +#include +#include +#include StrFdir::StrFdir(object_id_t strObject) : DeviceHandlerFailureIsolation(strObject, objects::NO_OBJECT) {} @@ -12,3 +14,13 @@ ReturnValue_t StrFdir::eventReceived(EventMessage* event) { } return DeviceHandlerFailureIsolation::eventReceived(event); } + +ReturnValue_t StrFdir::initialize() { + ReturnValue_t result = DeviceHandlerFailureIsolation::initialize(); + if (result != returnvalue::OK) { + return result; + } + EventManagerIF* manager = ObjectManager::instance()->get(objects::EVENT_MANAGER); + return manager->subscribeToEvent(eventQueue->getId(), + event::getEventId(acs::PTG_CTRL_NO_ATTITUDE_INFORMATION)); +} diff --git a/mission/system/acs/StrFdir.h b/mission/system/acs/StrFdir.h index 20476e1a..a40a3ccc 100644 --- a/mission/system/acs/StrFdir.h +++ b/mission/system/acs/StrFdir.h @@ -6,6 +6,7 @@ class StrFdir : public DeviceHandlerFailureIsolation { public: StrFdir(object_id_t strObject); + ReturnValue_t initialize() override; ReturnValue_t eventReceived(EventMessage* event) override; };