fsfw/src/fsfw/tasks/FixedSequenceSlot.cpp

19 lines
618 B
C++

#include "fsfw/tasks/FixedSequenceSlot.h"
#include <cstddef>
#include "fsfw/tasks/PeriodicTaskIF.h"
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() {}