com subsystme mode printouts
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
@ -228,3 +228,27 @@ bool ComSubsystem::isTxMode(Mode_t mode) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void ComSubsystem::announceMode(bool recursive) {
|
||||
const char *modeStr = "UNKNOWN";
|
||||
switch (mode) {
|
||||
case (com::RX_ONLY): {
|
||||
modeStr = "RX_ONLY";
|
||||
break;
|
||||
}
|
||||
case (com::RX_AND_TX_LOW_DATARATE): {
|
||||
modeStr = "RX_AND_TX_LOW_DATARATE";
|
||||
break;
|
||||
}
|
||||
case (com::RX_AND_TX_HIGH_DATARATE): {
|
||||
modeStr = "RX_AND_TX_HIGH_DATARATE";
|
||||
break;
|
||||
}
|
||||
case (com::RX_AND_TX_DEFAULT_DATARATE): {
|
||||
modeStr = "RX_AND_TX_DEFAULT_DATARATE";
|
||||
break;
|
||||
}
|
||||
}
|
||||
sif::info << "COM subsystem is now in " << modeStr << " mode" << std::endl;
|
||||
return Subsystem::announceMode(recursive);
|
||||
}
|
||||
|
Reference in New Issue
Block a user