From 57b01a5d2c6a4943ac8200e8eb676ea1e9162f89 Mon Sep 17 00:00:00 2001 From: meggert Date: Thu, 6 Apr 2023 10:37:25 +0200 Subject: [PATCH] moved SafeModeStrategy to defs --- mission/acs/defs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mission/acs/defs.h b/mission/acs/defs.h index 8523c683..bcc889d0 100644 --- a/mission/acs/defs.h +++ b/mission/acs/defs.h @@ -21,6 +21,17 @@ enum AcsMode : Mode_t { enum SafeSubmode : Submode_t { DEFAULT = 0, DETUMBLE = 1 }; +enum SafeModeStrategy : uint8_t { + SAFECTRL_OFF = 0, + SAFECTRL_NO_MAG_FIELD_FOR_CONTROL = 1, + SAFECTRL_NO_SENSORS_FOR_CONTROL = 2, + SAFECTRL_ACTIVE_MEKF = 10, + SAFECTRL_WITHOUT_MEKF = 11, + SAFECTRL_ECLIPSE_DAMPING = 12, + SAFECTRL_DETUMBLE_FULL = 20, + SAFECTRL_DETUMBLE_DETERIORATED = 21, +}; + static const uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::ACS_SUBSYSTEM; //! [EXPORT] : [COMMENT] The limits for the rotation in safe mode were violated. static constexpr Event SAFE_RATE_VIOLATION = MAKE_EVENT(0, severity::MEDIUM);