| ... | ... | @@ -3,7 +3,7 @@ The `TaskScheduler` is one of the most used and useful components provided by `s |
|
|
|
|
|
|
|
It is an [active object](Active-Object) that allows to run periodic tasks (functions) with user-selectable period.
|
|
|
|
This is very useful in order for example to perform the sampling of all the required sensors, but also to run control algorithms that have to be periodically updated.
|
|
|
|
One of the best advantages to use such component is that all the functions given to the scheduler are executed in the same thread.
|
|
|
|
One of the best advantages of using such a component is that all the functions given to the scheduler are executed in the same thread.
|
|
|
|
|
|
|
|
## Adding Tasks
|
|
|
|
The interface for adding a new task is pretty simple:
|
| ... | ... | |