[sensors] Refactor sensor sampling
See https://git.skywarder.eu/-/snippets/6.
-
Add Sensor<T>
andAbstractSensor
, remove oldSensor.h
-
Common interface also for sensors that use a FIFO -
Add base structs for sensor data, e.g. TemperatureData
,PressureData
ecc -
Refactor all sensors and entrypoint, eliminitating deprecated ones (out of production or those that can't be tested) -
Modify SensorManager to have a constant sensor map -
Integrate w/ cereal, see #82 (closed)(out of the scope of this issue, see #82 (closed) for future work) -
Implement sensor manager creation inside main() (see test entrypoints) -
Create auxiliary functions to enable a "global" 32-bit timer for accurate timestamps
Edited by Luca Conterio