fsfw/tasks/FixedSequenceSlot.cpp

17 lines
529 B
C++
Raw Normal View History

#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);
}
2020-06-29 15:55:20 +02:00
handler->initializeAfterTaskCreation();
}
2020-05-11 17:21:24 +02:00
FixedSequenceSlot::~FixedSequenceSlot() {}