Skip to content
Snippets Groups Projects
Commit 56e3081b authored by Federico Lolli's avatar Federico Lolli
Browse files

[ARP] Fix start method on SMController

parent 02a8870a
No related branches found
No related tags found
1 merge request!39Draft: Integration of core logic in ARP State Machine Controller
......@@ -63,19 +63,19 @@ bool SMController::start()
result = scheduler->addTask(bind(&Propagator::update, &propagator),
PropagatorConfig::PROPAGATOR_PERIOD,
TaskScheduler::Policy::RECOVER);
ok &= result == 0;
ok &= result != 0;
// add the Follower task
result = scheduler->addTask(bind(&Follower::update, &follower),
FollowerConfig::FOLLOWER_PERIOD,
TaskScheduler::Policy::RECOVER);
ok &= result == 0;
ok &= result != 0;
// add the update task
result = scheduler->addTask(bind(&SMController::update, this),
SMControllerConfig::UPDATE_PERIOD,
TaskScheduler::Policy::SKIP);
ok &= result == 0;
ok &= result != 0;
return ActiveObject::start() && ok;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment