Final Version of the ACS Controller #367

Merged
muellerr merged 78 commits from eggert/acs into develop 2023-02-08 13:50:11 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 341966e709 - Show all commits

View File

@ -451,7 +451,7 @@ ReturnValue_t AcsController::checkModeCommand(Mode_t mode, Submode_t submode,
return INVALID_SUBMODE;
}
} else if ((mode == MODE_ON) || (mode == MODE_NORMAL)) {
if ((submode > 7) || (submode < 2)) {
if ((submode > 8) || (submode < 2)) {
return INVALID_SUBMODE;
} else {
return returnvalue::OK;

View File

@ -29,7 +29,8 @@ class AcsController : public ExtendedControllerBase {
static const Submode_t SUBMODE_IDLE = 4;
static const Submode_t SUBMODE_PTG_NADIR = 5;
static const Submode_t SUBMODE_PTG_TARGET = 6;
static const Submode_t SUBMODE_PTG_INERTIAL = 7;
static const Submode_t SUBMODE_PTG_TARGET_GS = 7;
static const Submode_t SUBMODE_PTG_INERTIAL = 8;
static const uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::ACS_SUBSYSTEM;
static const Event SAFE_RATE_VIOLATION =