2018-07-12 16:29:32 +02:00
|
|
|
#include <framework/objectmanager/SystemObjectIF.h>
|
2020-06-19 20:14:56 +02:00
|
|
|
#include <framework/tasks/FixedSequenceSlot.h>
|
2018-07-12 16:29:32 +02:00
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
FixedSequenceSlot::FixedSequenceSlot(object_id_t handlerId, uint32_t setTime,
|
|
|
|
int8_t setSequenceId, PeriodicTaskIF* executingTask) :
|
2020-06-19 20:14:56 +02:00
|
|
|
pollingTimeMs(setTime), opcode(setSequenceId) {
|
2018-07-12 16:29:32 +02:00
|
|
|
handler = objectManager->get<ExecutableObjectIF>(handlerId);
|
2020-06-19 20:14:56 +02:00
|
|
|
if(executingTask != nullptr) {
|
|
|
|
handler->setTaskIF(executingTask);
|
|
|
|
}
|
2018-07-12 16:29:32 +02:00
|
|
|
}
|
|
|
|
|
2020-05-11 17:21:24 +02:00
|
|
|
FixedSequenceSlot::~FixedSequenceSlot() {}
|
2018-07-12 16:29:32 +02:00
|
|
|
|