| ... | ... | @@ -4,6 +4,8 @@ The `src/shared/sensors/Sensor.h` header file contains the base classes used to |
|
|
|
- It is extended by `Sensor`.
|
|
|
|
- A `SensorFIFO` is also provided for driver that use a FIFO (it extends `Sensor`).
|
|
|
|
|
|
|
|
<div align="center"><img src="images/sensor_manager/sensors_class_diagram.png" height="500"/><br/><i></i></div><br>
|
|
|
|
|
|
|
|
## AbstractSensor class
|
|
|
|
* `init()`: this is the first method to be called before using the sensor. It sets up the sensor, e.g. registers.
|
|
|
|
* `selfTest()`: check if the sensor is correctly working.
|
| ... | ... | |