Some minor documentation of the code.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user