1
0
forked from fsfw/fsfw

moved timeslot files to task folder

implmented setting task IF for regular periodic tasks
This commit is contained in:
2020-06-19 20:14:56 +02:00
parent eb4ce980fe
commit 2de811e0af
13 changed files with 82 additions and 58 deletions

View File

@ -0,0 +1,15 @@
#include <framework/objectmanager/SystemObjectIF.h>
#include <framework/tasks/FixedSequenceSlot.h>
#include <cstddef>
FixedSequenceSlot::FixedSequenceSlot(object_id_t handlerId, uint32_t setTime,
int8_t setSequenceId, PeriodicTaskIF* executingTask) :
pollingTimeMs(setTime), opcode(setSequenceId) {
handler = objectManager->get<ExecutableObjectIF>(handlerId);
if(executingTask != nullptr) {
handler->setTaskIF(executingTask);
}
}
FixedSequenceSlot::~FixedSequenceSlot() {}