anounce mode changes
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
170976566b
commit
ba0bc1b98b
@ -663,12 +663,15 @@ void AcsController::announceMode(bool recursive) {
|
|||||||
const char *modeStr = "UNKNOWN";
|
const char *modeStr = "UNKNOWN";
|
||||||
if (mode == HasModesIF::MODE_OFF) {
|
if (mode == HasModesIF::MODE_OFF) {
|
||||||
modeStr = "OFF";
|
modeStr = "OFF";
|
||||||
} else if (mode == HasModesIF::MODE_ON) {
|
} else {
|
||||||
modeStr = "ON";
|
*modeStr = acs::getModeStr(static_cast<acs::AcsMode>(mode));
|
||||||
} else if (mode == DeviceHandlerIF::MODE_NORMAL) {
|
}
|
||||||
modeStr = "NORMAL";
|
const char *submodeStr = "UNKNOWN";
|
||||||
|
if (submode == HasModesIF::SUBMODE_NONE) {
|
||||||
|
submodeStr = "NONE";
|
||||||
|
} else {
|
||||||
|
*submodeStr = acs::getModeStr(static_cast<acs::AcsMode>(mode));
|
||||||
}
|
}
|
||||||
const char *submodeStr = acs::getModeStr(static_cast<acs::AcsMode>(submode));
|
|
||||||
sif::info << "ACS controller is now in " << modeStr << " mode with " << submodeStr << " submode"
|
sif::info << "ACS controller is now in " << modeStr << " mode with " << submodeStr << " submode"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
return ExtendedControllerBase::announceMode(recursive);
|
return ExtendedControllerBase::announceMode(recursive);
|
||||||
|
Loading…
Reference in New Issue
Block a user