contrib
doc
hal
misc
defaultcfg
fsfwconfig
devices
events
ipc
objects
pollingsequence
PollingSequenceFactory.cpp
PollingSequenceFactory.h
returnvalues
tmtc
CMakeLists.txt
FSFWConfig.h
OBSWConfig.h
OBSWVersion.h
README.md
logo
src
tests
.gitignore
.gitmodules
CHANGELOG
CMakeLists.txt
LICENSE
NOTICE
README.md
26 lines
712 B
C++
26 lines
712 B
C++
#include "PollingSequenceFactory.h"
|
|
|
|
#include <fsfw/serviceinterface/ServiceInterfaceStream.h>
|
|
#include <fsfw/devicehandlers/DeviceHandlerIF.h>
|
|
#include <fsfw/tasks/FixedTimeslotTaskIF.h>
|
|
|
|
ReturnValue_t pst::pollingSequenceInitDefault(
|
|
FixedTimeslotTaskIF *thisSequence) {
|
|
/* Length of a communication cycle */
|
|
uint32_t length = thisSequence->getPeriodMs();
|
|
|
|
/* Add polling sequence table here */
|
|
|
|
if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|
|
else {
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
|
sif::error << "pst::pollingSequenceInitDefault: Sequence invalid!"
|
|
<< std::endl;
|
|
#endif
|
|
return HasReturnvaluesIF::RETURN_FAILED;
|
|
}
|
|
}
|
|
|