2020-10-29 12:23:27 +01:00
|
|
|
#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 {
|
2021-01-03 13:58:18 +01:00
|
|
|
#if CPP_OSTREAM_ENABLED == 1
|
2020-10-29 12:23:27 +01:00
|
|
|
sif::error << "pst::pollingSequenceInitDefault: Sequence invalid!"
|
|
|
|
<< std::endl;
|
2021-01-03 13:58:18 +01:00
|
|
|
#endif
|
2020-10-29 12:23:27 +01:00
|
|
|
return HasReturnvaluesIF::RETURN_FAILED;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|