compiling and working again

This commit is contained in:
Robin Müller 2020-09-05 21:11:27 +02:00
parent 39b675cf99
commit 80e60566d8
4 changed files with 12 additions and 5 deletions

View File

@ -90,9 +90,12 @@ ReturnValue_t FixedTimeslotTask::sleepFor(uint32_t ms) {
} }
void FixedTimeslotTask::taskFunctionality() { void FixedTimeslotTask::taskFunctionality() {
pollingSeqTable.intializeSequenceAfterTaskCreation();
// A local iterator for the Polling Sequence Table is created to // A local iterator for the Polling Sequence Table is created to
// find the start time for the first entry. // find the start time for the first entry.
FixedSlotSequence::SlotListIter slotListIter = pollingSeqTable.current; auto slotListIter = pollingSeqTable.current;
// Get start time for first entry. // Get start time for first entry.
chron_ms interval(slotListIter->pollingTimeMs); chron_ms interval(slotListIter->pollingTimeMs);
auto currentStartTime { auto currentStartTime {
@ -135,7 +138,7 @@ ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
return HasReturnvaluesIF::RETURN_FAILED; return HasReturnvaluesIF::RETURN_FAILED;
} }
ReturnValue_t FixedTimeslotTask::checkAndInitializeSequence() const { ReturnValue_t FixedTimeslotTask::checkSequence() const {
return pollingSeqTable.checkSequence(); return pollingSeqTable.checkSequence();
} }

View File

@ -61,7 +61,7 @@ public:
ReturnValue_t addSlot(object_id_t componentId, ReturnValue_t addSlot(object_id_t componentId,
uint32_t slotTimeMs, int8_t executionStep); uint32_t slotTimeMs, int8_t executionStep);
ReturnValue_t checkAndInitializeSequence() const; ReturnValue_t checkSequence() const override;
uint32_t getPeriodMs() const; uint32_t getPeriodMs() const;

View File

@ -37,7 +37,7 @@ ReturnValue_t QueueMapManager::addMessageQueue(
MessageQueueIF* QueueMapManager::getMessageQueue( MessageQueueIF* QueueMapManager::getMessageQueue(
MessageQueueId_t messageQueueId) const { MessageQueueId_t messageQueueId) const {
MutexHelper(MutexIF::TimeoutType::WAITING, mapLock, 50); MutexHelper(mapLock, MutexIF::TimeoutType::WAITING, 50);
auto queueIter = queueMap.find(messageQueueId); auto queueIter = queueMap.find(messageQueueId);
if(queueIter != queueMap.end()) { if(queueIter != queueMap.end()) {
return queueIter->second; return queueIter->second;

View File

@ -3,6 +3,10 @@
#include <inttypes.h> #include <inttypes.h>
#include <math.h> #include <math.h>
#ifndef SCNu8
#define SCNu8 "hhu"
#endif
CCSDSTime::CCSDSTime() { CCSDSTime::CCSDSTime() {
} }