34 lines
970 B
C++
34 lines
970 B
C++
|
/*
|
||
|
* PollingSequenceCentroidFunction.cpp
|
||
|
*
|
||
|
* Created on: May 1, 2021
|
||
|
* Author: mala
|
||
|
*/
|
||
|
|
||
|
#include <fsfw/objectmanager/ObjectManagerIF.h>
|
||
|
#include <fsfw/serviceinterface/ServiceInterfaceStream.h>
|
||
|
#include <fsfw/tasks/FixedTimeslotTaskIF.h>
|
||
|
#include <fsfw/devicehandlers/DeviceHandlerIF.h>
|
||
|
#include <fsfw/controller/ControllerBase.h>
|
||
|
#include "../../../bsp_linux/fsfwconfig/objects/systemObjectList.h"
|
||
|
#include "../../../bsp_linux/fsfwconfig/OBSWConfig.h"
|
||
|
#include "PollingSequenceArduino.h"
|
||
|
ReturnValue_t pollingSequenceControllerFunction(
|
||
|
FixedTimeslotTaskIF* thisSequence){
|
||
|
uint32_t length = thisSequence->getPeriodMs();
|
||
|
|
||
|
thisSequence->addSlot(objects::THERMAL_CONTROLLER, length * 1, 0);
|
||
|
|
||
|
if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) {
|
||
|
return HasReturnvaluesIF::RETURN_OK;
|
||
|
}
|
||
|
else {
|
||
|
sif::error << "pollingSequenceControllerFunction::initialize has errors!"
|
||
|
<< std::endl;
|
||
|
return HasReturnvaluesIF::RETURN_FAILED;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|