Some minor documentation of the code.

This commit is contained in:
2021-09-24 18:11:10 +02:00
parent c70fed0aa9
commit 58a3cd34ed
11 changed files with 15 additions and 19 deletions

View File

@ -109,9 +109,13 @@ void InitMission::createTasks(){
sif::error << "Object add component failed" << std::endl;
}
/* Time period set experimentally.
* It should be set an optimal period of execution for both
* the device handler and the arduino operations.
*/
FixedTimeslotTaskIF* arduinoTask = TaskFactory::instance()->
createFixedTimeslotTask("ARDUINO_TASK",40,
PeriodicTaskIF::MINIMUM_STACK_SIZE, 0.8/*6.4*/, nullptr);
PeriodicTaskIF::MINIMUM_STACK_SIZE, 2, nullptr);
result = pollingSequenceArduinoFunction(arduinoTask);
if(result != HasReturnvaluesIF::RETURN_OK) {
sif::error << "InitMission::createTasks:ArduinoPST initialization failed!"
@ -151,7 +155,7 @@ void InitMission::createTasks(){
//Main thread sleep
sif::debug << "Starting Tasks in 2 seconds" << std::endl;
TaskFactory::delayTask(2400);
TaskFactory::delayTask(2000);
distributerTask->startTask();
udpBridgeTask->startTask();
udpPollingTask->startTask();