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:
parent
f4951385fd
commit
146767b04f
@ -228,3 +228,27 @@ bool ComSubsystem::isTxMode(Mode_t mode) {
|
|||||||
}
|
}
|
||||||
return false;
|
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);
|
||||||
|
}
|
||||||
|
@ -47,6 +47,7 @@ class ComSubsystem : public Subsystem, public ReceivesParameterMessagesIF {
|
|||||||
ReturnValue_t initialize() override;
|
ReturnValue_t initialize() override;
|
||||||
|
|
||||||
void startTransition(Mode_t mode, Submode_t submode) override;
|
void startTransition(Mode_t mode, Submode_t submode) override;
|
||||||
|
void announceMode(bool recursive) override;
|
||||||
|
|
||||||
void readEventQueue();
|
void readEventQueue();
|
||||||
void handleEventMessage(EventMessage *eventMessage);
|
void handleEventMessage(EventMessage *eventMessage);
|
||||||
|
Loading…
Reference in New Issue
Block a user