fsfw/tasks/FixedSequenceSlot.cpp
Robin.Mueller 2de811e0af moved timeslot files to task folder
implmented setting task IF for regular periodic tasks
2020-06-19 20:14:56 +02:00

16 lines
488 B
C++

#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() {}