cleanup
This commit is contained in:
@ -2,35 +2,16 @@
|
||||
#define SAFECTRL_H_
|
||||
|
||||
#include <eive/resultClassIds.h>
|
||||
#include <mission/acs/defs.h>
|
||||
#include <mission/controller/acs/AcsParameters.h>
|
||||
#include <mission/controller/acs/SensorValues.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
class SafeCtrl {
|
||||
public:
|
||||
SafeCtrl(AcsParameters *acsParameters_);
|
||||
virtual ~SafeCtrl();
|
||||
|
||||
static constexpr uint8_t IF_SAFE_ID = CLASS_ID::ACS_SAFE;
|
||||
static constexpr ReturnValue_t SAFECTRL_NO_MAG_FIELD_FOR_CONTROL =
|
||||
returnvalue::makeCode(IF_SAFE_ID, 2);
|
||||
static constexpr ReturnValue_t SAFECTRL_USE_MEKF = returnvalue::makeCode(IF_SAFE_ID, 3);
|
||||
static constexpr ReturnValue_t SAFECTRL_USE_NONMEKF = returnvalue::makeCode(IF_SAFE_ID, 4);
|
||||
static constexpr ReturnValue_t SAFECTRL_USE_DAMPING = returnvalue::makeCode(IF_SAFE_ID, 5);
|
||||
static constexpr ReturnValue_t SAFECTRL_NO_SENSORS_FOR_CONTROL =
|
||||
returnvalue::makeCode(IF_SAFE_ID, 6);
|
||||
|
||||
enum SafeModeStrategy : uint8_t {
|
||||
SAFECTRL_OFF = 0,
|
||||
SAFECTRL_NO_MAG_FIELD_FOR_CONTROL = 1,
|
||||
SAFECTRL_NO_SENSORS_FOR_CONTROL = 2,
|
||||
SAFECTRL_USE_MEKF = 10,
|
||||
SAFECTRL_USE_NONMEKF = 11,
|
||||
SAFECTRL_USE_DAMPING = 12,
|
||||
};
|
||||
|
||||
uint8_t safeCtrlStrategy(const bool magFieldValid, const ReturnValue_t mekfValid,
|
||||
const bool satRotRateValid, const bool sunDirValid);
|
||||
|
||||
|
Reference in New Issue
Block a user