33 lines
611 B
C++
33 lines
611 B
C++
|
#include "payloadDefs.h"
|
||
|
|
||
|
const char* payload::getModeStr(Mode mode) {
|
||
|
static const char* modeStr = "UNKNOWN";
|
||
|
switch (mode) {
|
||
|
case (Mode::CAM_STREAM): {
|
||
|
modeStr = "CAM STREAM";
|
||
|
break;
|
||
|
}
|
||
|
case (Mode::EARTH_OBSV): {
|
||
|
modeStr = "EARTH OBSV";
|
||
|
break;
|
||
|
}
|
||
|
case (Mode::MPSOC_STREAM): {
|
||
|
modeStr = "MPSOC STREAM";
|
||
|
break;
|
||
|
}
|
||
|
case (Mode::OFF): {
|
||
|
modeStr = "OFF";
|
||
|
break;
|
||
|
}
|
||
|
case (Mode::SUPV_ONLY): {
|
||
|
modeStr = "SUPV ONLY";
|
||
|
break;
|
||
|
}
|
||
|
case (Mode::SCEX): {
|
||
|
modeStr = "SCEX";
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return modeStr;
|
||
|
}
|