fsfw/src/fsfw/tasks/FixedSequenceSlot.cpp

19 lines
618 B
C++
Raw Permalink Normal View History

2021-07-13 20:22:54 +02:00
#include "fsfw/tasks/FixedSequenceSlot.h"
2020-09-04 13:52:54 +02:00
#include <cstddef>
2022-02-02 10:29:30 +01:00
#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);
2020-09-04 13:52:54 +02:00
}
FixedSequenceSlot::~FixedSequenceSlot() {}