only process on TC request per cycle
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:
@ -52,7 +52,7 @@ PusTmFunnel::~PusTmFunnel() = default;
|
||||
ReturnValue_t PusTmFunnel::performOperation(uint8_t) {
|
||||
CommandMessage cmdMessage;
|
||||
ReturnValue_t status = tcQueue->receiveMessage(&cmdMessage);
|
||||
while (status == returnvalue::OK) {
|
||||
if (status == returnvalue::OK) {
|
||||
if (cmdMessage.getMessageType() == messagetypes::TM_STORE) {
|
||||
Command_t cmd = cmdMessage.getCommand();
|
||||
object_id_t objectId = TmStoreMessage::getObjectId(&cmdMessage);
|
||||
@ -103,15 +103,15 @@ ReturnValue_t PusTmFunnel::performOperation(uint8_t) {
|
||||
}
|
||||
}
|
||||
}
|
||||
TmTcMessage currentMessage;
|
||||
status = tmQueue->receiveMessage(¤tMessage);
|
||||
TmTcMessage tmMessage;
|
||||
status = tmQueue->receiveMessage(&tmMessage);
|
||||
while (status == returnvalue::OK) {
|
||||
status = handleTmPacket(currentMessage);
|
||||
status = handleTmPacket(tmMessage);
|
||||
if (status != returnvalue::OK) {
|
||||
sif::warning << "TmFunnel packet handling failed" << std::endl;
|
||||
break;
|
||||
}
|
||||
status = tmQueue->receiveMessage(¤tMessage);
|
||||
status = tmQueue->receiveMessage(&tmMessage);
|
||||
}
|
||||
|
||||
if (status == MessageQueueIF::EMPTY) {
|
||||
@ -140,7 +140,7 @@ ReturnValue_t PusTmFunnel::handleTmPacket(TmTcMessage &message) {
|
||||
sourceSequenceCount = sourceSequenceCount % ccsds::LIMIT_SEQUENCE_COUNT;
|
||||
packet.updateErrorControl();
|
||||
|
||||
timeval currentUptime;
|
||||
timeval currentUptime{};
|
||||
Clock::getUptime(¤tUptime);
|
||||
if (currentUptime.tv_sec - lastTvUpdate.tv_sec >
|
||||
static_cast<signed int>(TV_UPDATE_INTERVAL_SECS)) {
|
||||
|
Reference in New Issue
Block a user