2023-02-02 16:27:50 +01:00
|
|
|
#ifndef MISSION_ACSDEFS_H_
|
|
|
|
#define MISSION_ACSDEFS_H_
|
|
|
|
|
2023-02-02 17:12:22 +01:00
|
|
|
#include <eive/eventSubsystemIds.h>
|
2023-02-02 16:27:50 +01:00
|
|
|
#include <fsfw/modes/HasModesIF.h>
|
|
|
|
|
|
|
|
namespace acs {
|
|
|
|
|
|
|
|
enum CtrlSubmode {
|
2023-02-08 11:05:35 +01:00
|
|
|
OFF = HasModesIF::SUBMODE_NONE,
|
2023-02-06 20:15:45 +01:00
|
|
|
SAFE = 10,
|
|
|
|
DETUMBLE = 11,
|
|
|
|
IDLE = 12,
|
|
|
|
PTG_TARGET_NADIR = 13,
|
|
|
|
PTG_TARGET = 14,
|
|
|
|
PTG_TARGET_GS = 15,
|
|
|
|
PTG_TARGET_INERTIAL = 16,
|
2023-02-02 16:27:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::ACS_SUBSYSTEM;
|
2023-02-03 10:51:56 +01:00
|
|
|
//!< The limits for the rotation in safe mode were violated.
|
2023-02-03 10:52:39 +01:00
|
|
|
static const Event SAFE_RATE_VIOLATION = MAKE_EVENT(0, severity::MEDIUM);
|
|
|
|
//!< The system has recovered from a safe rate rotation violation.
|
|
|
|
static constexpr Event SAFE_RATE_RECOVERY = MAKE_EVENT(1, severity::MEDIUM);
|
2023-02-02 16:27:50 +01:00
|
|
|
|
|
|
|
} // namespace acs
|
|
|
|
|
|
|
|
#endif /* MISSION_ACSDEFS_H_ */
|