Merge pull request 'Feature: Set health overrides' (#563) from feature_set_health_overrides into develop
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
Reviewed-on: #563
This commit is contained in:
@ -9,4 +9,5 @@ target_sources(
|
||||
SusAssembly.cpp
|
||||
AcsBoardFdir.cpp
|
||||
acsModeTree.cpp
|
||||
SusFdir.cpp)
|
||||
SusFdir.cpp
|
||||
StrFdir.cpp)
|
||||
|
14
mission/system/acs/StrFdir.cpp
Normal file
14
mission/system/acs/StrFdir.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include "StrFdir.h"
|
||||
|
||||
#include "mission/acs/defs.h"
|
||||
|
||||
StrFdir::StrFdir(object_id_t strObject)
|
||||
: DeviceHandlerFailureIsolation(strObject, objects::NO_OBJECT) {}
|
||||
|
||||
ReturnValue_t StrFdir::eventReceived(EventMessage* event) {
|
||||
if (event->getEvent() == acs::MEKF_INVALID_MODE_VIOLATION) {
|
||||
setFaulty(event->getEvent());
|
||||
return returnvalue::OK;
|
||||
}
|
||||
return DeviceHandlerFailureIsolation::eventReceived(event);
|
||||
}
|
12
mission/system/acs/StrFdir.h
Normal file
12
mission/system/acs/StrFdir.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef MISSION_SYSTEM_FDIR_STRFDIR_H_
|
||||
#define MISSION_SYSTEM_FDIR_STRFDIR_H_
|
||||
|
||||
#include <fsfw/devicehandlers/DeviceHandlerFailureIsolation.h>
|
||||
|
||||
class StrFdir : public DeviceHandlerFailureIsolation {
|
||||
public:
|
||||
StrFdir(object_id_t strObject);
|
||||
ReturnValue_t eventReceived(EventMessage* event) override;
|
||||
};
|
||||
|
||||
#endif /* MISSION_SYSTEM_FDIR_STRFDIR_H_ */
|
Reference in New Issue
Block a user