comments and low energy sampling
This commit is contained in:
parent
db1750ef53
commit
e2f57bad76
5 changed files with 67 additions and 19 deletions
|
|
@ -1,13 +1,15 @@
|
|||
#ifndef NEW_CLIMTE_GO_SENSOR_H
|
||||
#define NEW_CLIMTE_GO_SENSOR_H
|
||||
|
||||
#include <sensors/sensor_data_t.h>
|
||||
|
||||
enum class SensorState : unsigned short {
|
||||
AWAKE, ASLEEP
|
||||
};
|
||||
|
||||
class Sensor {
|
||||
public:
|
||||
virtual void sample() = 0;
|
||||
virtual sensor_data_t sample() = 0;
|
||||
|
||||
virtual void wakeUp() = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue