fsfw/tasks/FixedSequenceSlot.cpp

18 lines
534 B
C++
Raw Permalink Normal View History

2020-09-04 14:11:59 +02:00
#include "FixedSequenceSlot.h"
#include "PeriodicTaskIF.h"
2020-09-04 13:52:54 +02:00
#include <cstddef>
FixedSequenceSlot::FixedSequenceSlot(object_id_t handlerId, uint32_t setTime,
int8_t setSequenceId, ExecutableObjectIF* executableObject,
PeriodicTaskIF* executingTask) : handlerId(handlerId),
pollingTimeMs(setTime), opcode(setSequenceId) {
if(executableObject == nullptr) {
return;
}
this->executableObject = executableObject;
this->executableObject->setTaskIF(executingTask);
}
FixedSequenceSlot::~FixedSequenceSlot() {}