Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later.

This commit is contained in:
2021-09-10 17:08:38 +02:00
parent 6a65c7af33
commit d857487d17
357 changed files with 20043 additions and 54 deletions

View File

@ -14,6 +14,7 @@ class FixedTimeslotTaskIF;
ReturnValue_t pollingSequenceArduinoFunction(FixedTimeslotTaskIF *thisSequence);
ReturnValue_t pollingSequenceControllerFunction(FixedTimeslotTaskIF *thisSequence);

View File

@ -16,19 +16,16 @@ ReturnValue_t pollingSequenceArduinoFunction(
FixedTimeslotTaskIF* thisSequence){
uint32_t length = thisSequence->getPeriodMs();
//thisSequence->addSlot(objects::CENTROID_INJECTOR, length * 0, 2);
//thisSequence->addSlot(objects::CENTROID_WRITER, length * 0.1, 2);
thisSequence->addSlot(objects::ARDUINO_HANDLER, length * 0, 0);
thisSequence->addSlot(objects::ARDUINO_HANDLER, length * 0.2, 1);
thisSequence->addSlot(objects::ARDUINO_HANDLER, length * 0.4, 2);
thisSequence->addSlot(objects::ARDUINO_HANDLER, length * 0.6, 3);
//thisSequence->addSlot(objects::CENTROID_WRITER, length * 0.1, 2);
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0, 0);
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.2, 1);
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.4, 2);
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.6, 3);
if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) {
return HasReturnvaluesIF::RETURN_OK;
}
else {
sif::error << "pollingSequenceCentroidFunction::initialize has errors!"
sif::error << "pollingSequenceArduinoFunction::initialize has errors!"
<< std::endl;
return HasReturnvaluesIF::RETURN_FAILED;
}

View File

@ -0,0 +1,36 @@
/*
* 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);
//thisSequence->addSlot(objects::THERMAL_CONTROLLER, length * 0.2, 1);
//thisSequence->addSlot(objects::THERMAL_CONTROLLER, length * 0.4, 2);
//thisSequence->addSlot(objects::THERMAL_CONTROLLER, length * 0.6, 3);
if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) {
return HasReturnvaluesIF::RETURN_OK;
}
else {
sif::error << "pollingSequenceControllerFunction::initialize has errors!"
<< std::endl;
return HasReturnvaluesIF::RETURN_FAILED;
}
}