fsfw/tasks/FixedSequenceSlot.cpp

18 lines
555 B
C++
Raw Normal View History

2020-08-18 13:09:15 +02:00
#include "../objectmanager/SystemObjectIF.h"
#include "../tasks/FixedSequenceSlot.h"
#include <cstddef>
FixedSequenceSlot::FixedSequenceSlot(object_id_t handlerId, uint32_t setTime,
2020-08-24 22:08:27 +02:00
int8_t setSequenceId, ExecutableObjectIF* executableObject,
PeriodicTaskIF* executingTask) :
2020-08-18 13:09:15 +02:00
pollingTimeMs(setTime), opcode(setSequenceId) {
2020-08-24 22:08:27 +02:00
if(executableObject == nullptr) {
return;
}
this->executableObject = executableObject;
this->executableObject->setTaskIF(executingTask);
2020-08-18 13:09:15 +02:00
}
FixedSequenceSlot::~FixedSequenceSlot() {}