moved timeslot files to task folder
implmented setting task IF for regular periodic tasks
This commit is contained in:
15
tasks/FixedSequenceSlot.cpp
Normal file
15
tasks/FixedSequenceSlot.cpp
Normal 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() {}
|
||||
|
Reference in New Issue
Block a user