... | ... | @@ -48,8 +48,8 @@ It might seem tricky and complex, so in order to simplify the understanding we c |
|
|
|
|
|
We outline three phases:
|
|
|
1. In the first phase sensors are added to the `SensorManager`, that assigns them to the correct `SensorSampler`, along with the corresponding period, callback and booleans indicating if it is enabled or if it uses DMA.
|
|
|
2. When the `SensorManager` is started, for each sampler it schedules a periodic task, according to the required sampling period.
|
|
|
3. From that point on, the `TaskScheduler` periodically calls the `SensorSampler` objects. When called, each sampler performs the sampling of all the enabled sensors it manages and for each of them calls the associated callback.
|
|
|
2. For each sampler the `SensorManager` schedules a periodic task, according to the required sampling period.
|
|
|
3. When the `SensorManager` is started, the `TaskScheduler` periodically calls the `SensorSampler` objects. When called, each sampler performs the sampling of all the enabled sensors it holds and for each of them calls the associated callback.
|
|
|
|
|
|
<div align="center"><img src="images/sensor_manager/SensorManager_flowchart.png" height="500"/><br/><i></i></div><br>
|
|
|
|
... | ... | |