2023-03-24 20:50:33 +01:00
|
|
|
#include "defs.h"
|
2023-02-13 01:26:30 +01:00
|
|
|
|
|
|
|
const char* acs::getModeStr(AcsMode mode) {
|
|
|
|
static const char* modeStr = "UNKNOWN";
|
|
|
|
switch (mode) {
|
|
|
|
case (acs::AcsMode::OFF): {
|
|
|
|
modeStr = "OFF";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case (acs::AcsMode::SAFE): {
|
|
|
|
modeStr = "SAFE";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case (acs::AcsMode::PTG_NADIR): {
|
|
|
|
modeStr = "POITNING NADIR";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case (acs::AcsMode::PTG_IDLE): {
|
|
|
|
modeStr = "POINTING IDLE";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case (acs::AcsMode::PTG_INERTIAL): {
|
|
|
|
modeStr = "POINTING INERTIAL";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case (acs::AcsMode::PTG_TARGET): {
|
|
|
|
modeStr = "POINTING TARGET";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case (acs::AcsMode::PTG_TARGET_GS): {
|
|
|
|
modeStr = "POINTING TARGET GS";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return modeStr;
|
|
|
|
}
|