eive-obsw/mission/tmtc/LiveTmTask.cpp
Robin Mueller 96865c1dd2
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
continue TM handling refactoring
2023-03-09 17:44:05 +01:00

17 lines
465 B
C++

#include "LiveTmTask.h"
#include <fsfw/tasks/TaskFactory.h>
LiveTmTask::LiveTmTask(object_id_t objectId, VirtualChannelWithQueue& channel)
: SystemObject(objectId), channel(channel) {}
ReturnValue_t LiveTmTask::performOperation(uint8_t opCode) {
while (true) {
ReturnValue_t result = channel.sendNextTm();
if (result == MessageQueueIF::EMPTY) {
// 5 ms IDLE delay. Might tweak this in the future.
TaskFactory::delayTask(5);
}
}
}