20 #ifndef _ADAFRUIT_SENSOR_H 21 #define _ADAFRUIT_SENSOR_H 34 #define SENSORS_GRAVITY_EARTH (9.80665F) 35 #define SENSORS_GRAVITY_MOON (1.6F) 36 #define SENSORS_GRAVITY_SUN (275.0F) 37 #define SENSORS_GRAVITY_STANDARD (SENSORS_GRAVITY_EARTH) 38 #define SENSORS_MAGFIELD_EARTH_MAX (60.0F) 39 #define SENSORS_MAGFIELD_EARTH_MIN (30.0F) 40 #define SENSORS_PRESSURE_SEALEVELHPA (1013.25F) 41 #define SENSORS_DPS_TO_RADS (0.017453293F) 42 #define SENSORS_GAUSS_TO_MICROTESLA (100) 47 SENSOR_TYPE_ACCELEROMETER = (1),
48 SENSOR_TYPE_MAGNETIC_FIELD = (2),
49 SENSOR_TYPE_ORIENTATION = (3),
50 SENSOR_TYPE_GYROSCOPE = (4),
51 SENSOR_TYPE_LIGHT = (5),
52 SENSOR_TYPE_PRESSURE = (6),
53 SENSOR_TYPE_PROXIMITY = (8),
54 SENSOR_TYPE_GRAVITY = (9),
55 SENSOR_TYPE_LINEAR_ACCELERATION = (10),
56 SENSOR_TYPE_ROTATION_VECTOR = (11),
57 SENSOR_TYPE_RELATIVE_HUMIDITY = (12),
58 SENSOR_TYPE_AMBIENT_TEMPERATURE = (13),
59 SENSOR_TYPE_VOLTAGE = (15),
60 SENSOR_TYPE_CURRENT = (16),
61 SENSOR_TYPE_COLOR = (17)
146 virtual void enableAutoRange(
bool enabled) {};
148 virtual void getSensor(
sensor_t*) = 0;
sensors_vec_t orientation
Definition: Adafruit_Sensor.h:112
Definition: Adafruit_Sensor.h:65
float b
Definition: Adafruit_Sensor.h:92
float light
Definition: Adafruit_Sensor.h:116
float r
Definition: Adafruit_Sensor.h:90
float g
Definition: Adafruit_Sensor.h:91
Definition: Adafruit_Sensor.h:127
float voltage
Definition: Adafruit_Sensor.h:120
int32_t version
Definition: Adafruit_Sensor.h:130
float pressure
Definition: Adafruit_Sensor.h:117
int32_t type
Definition: Adafruit_Sensor.h:132
float distance
Definition: Adafruit_Sensor.h:115
sensors_vec_t acceleration
Definition: Adafruit_Sensor.h:110
sensors_vec_t magnetic
Definition: Adafruit_Sensor.h:111
int32_t sensor_id
Definition: Adafruit_Sensor.h:131
float min_value
Definition: Adafruit_Sensor.h:134
uint32_t rgba
Definition: Adafruit_Sensor.h:95
int32_t sensor_id
Definition: Adafruit_Sensor.h:103
int32_t timestamp
Definition: Adafruit_Sensor.h:106
Definition: Adafruit_Sensor.h:139
Definition: Adafruit_Sensor.h:100
int32_t reserved0
Definition: Adafruit_Sensor.h:105
float current
Definition: Adafruit_Sensor.h:119
Definition: Adafruit_Sensor.h:85
sensors_color_t color
Definition: Adafruit_Sensor.h:121
float roll
Definition: Adafruit_Sensor.h:75
float heading
Definition: Adafruit_Sensor.h:77
float relative_humidity
Definition: Adafruit_Sensor.h:118
float temperature
Definition: Adafruit_Sensor.h:114
int32_t version
Definition: Adafruit_Sensor.h:102
sensors_vec_t gyro
Definition: Adafruit_Sensor.h:113
float max_value
Definition: Adafruit_Sensor.h:133
int32_t type
Definition: Adafruit_Sensor.h:104
float resolution
Definition: Adafruit_Sensor.h:135
int32_t min_delay
Definition: Adafruit_Sensor.h:136
float pitch
Definition: Adafruit_Sensor.h:76