Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 1.1 KB

core-avr-sensor.md

File metadata and controls

18 lines (9 loc) · 1.1 KB

[TOC]

Overview

The avr-core-sensor library focuses on managing, initializing, and polling sensors. There is a hard dependency on the core-avr-database library.

Overview

SensorManager

The entry point for managing sensors is SensorManager. New Sensor instances are added to the manager with a corresponding SensorConfig. The config holds information that informs the SensorManager how to use the Sensor.

SensorManager::update() is called on an update loop. The manager then moves through the list of Sensors it maintains and polls them according to the configuration. Collected data is saved to a persistent store by creating and maintaining Database instances from DatabaseManager.

Sensor Data

Sensor data is informed by the backend storage mechanism which you can read more about in the core-avr-database: Storage document. Effectively, each sensor may return one or many floating point values which are then stored by timestamp.