acs ctrl triggers event now
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
#include "StrFdir.h"
|
||||
|
||||
#include "mission/acs/defs.h"
|
||||
#include <eive/objects.h>
|
||||
#include <fsfw/events/EventManagerIF.h>
|
||||
#include <mission/acs/defs.h>
|
||||
|
||||
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<EventManagerIF>(objects::EVENT_MANAGER);
|
||||
return manager->subscribeToEvent(eventQueue->getId(),
|
||||
event::getEventId(acs::PTG_CTRL_NO_ATTITUDE_INFORMATION));
|
||||
}
|
||||
|
Reference in New Issue
Block a user