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:
@ -108,15 +108,27 @@ void InitMission::createTasks(){
|
||||
if(result!=HasReturnvaluesIF::RETURN_OK){
|
||||
sif::error << "Object add component failed" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
sif::debug << "debug1: arduino tasks" << std::endl;
|
||||
FixedTimeslotTaskIF* arduinoTask = TaskFactory::instance()->
|
||||
createFixedTimeslotTask("ARDUINO_TASK",40,
|
||||
PeriodicTaskIF::MINIMUM_STACK_SIZE, 0.102, nullptr);
|
||||
PeriodicTaskIF::MINIMUM_STACK_SIZE, 2, nullptr);
|
||||
result = pollingSequenceArduinoFunction(arduinoTask);
|
||||
if(result != HasReturnvaluesIF::RETURN_OK) {
|
||||
sif::error << "InitMission::createTasks:ArduinoPST initialization failed!"
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
sif::debug << "debug2: arduino tasks" << std::endl;
|
||||
FixedTimeslotTaskIF* controllerTask = TaskFactory::instance()->
|
||||
createFixedTimeslotTask("CONTROLLER_TASK",40,
|
||||
PeriodicTaskIF::MINIMUM_STACK_SIZE, 3, nullptr);
|
||||
result = pollingSequenceControllerFunction(controllerTask);
|
||||
if(result != HasReturnvaluesIF::RETURN_OK) {
|
||||
sif::error << "InitMission::createTasks:ArduinoController initialization failed!"
|
||||
<< std::endl;
|
||||
}
|
||||
sif::debug << "debug3: arduino tasks" << std::endl;
|
||||
|
||||
#if OBSW_ADD_TEST_CODE == 1
|
||||
FixedTimeslotTaskIF* testTimeslotTask = TaskFactory::instance()->
|
||||
@ -147,6 +159,9 @@ void InitMission::createTasks(){
|
||||
udpPollingTask->startTask();
|
||||
//serializeTask->startTask();
|
||||
arduinoTask->startTask();
|
||||
sif::debug << "debug4: arduino tasks" << std::endl;
|
||||
controllerTask->startTask();
|
||||
sif::debug << "debug5: arduino tasks" << std::endl;
|
||||
|
||||
//payloadTask->startTask();
|
||||
eventTask->startTask();
|
||||
|
Reference in New Issue
Block a user