|
63 | 63 |
|
64 | 64 | #define SENSOR_TYPE_MAGNETIC_FIELD 2
|
65 | 65 |
|
| 66 | +/* Ultraviolet light sensor |
| 67 | + * This sensor can identify the UV index in ambient light help people |
| 68 | + * to effectively protect themselves from sunburns, cancer or eye damage. |
| 69 | + * This value range is 0 - 15. |
| 70 | + */ |
| 71 | +#define SENSOR_TYPE_ULTRAVIOLET 3 |
| 72 | + |
66 | 73 | /* Gyroscope
|
67 | 74 | * All values are in radians/second and measure the rate of rotation around
|
68 | 75 | * the X, Y and Z axis.
|
69 | 76 | */
|
70 | 77 |
|
71 |
| -#define SENSOR_TYPE_GYROSCOPE 3 |
| 78 | +#define SENSOR_TYPE_GYROSCOPE 4 |
72 | 79 |
|
73 | 80 | /* Ambient Light
|
74 | 81 | * The ambient light sensor value is returned in SI units lux.
|
75 | 82 | */
|
76 | 83 |
|
77 |
| -#define SENSOR_TYPE_LIGHT 4 |
| 84 | +#define SENSOR_TYPE_LIGHT 5 |
78 | 85 |
|
79 | 86 | /* Barometer
|
80 | 87 | * All values are in hectopascal (hPa) and measure the athmospheric pressure.
|
81 | 88 | * You can calculate altitude by perssure.
|
82 | 89 | */
|
83 | 90 |
|
84 |
| -#define SENSOR_TYPE_BAROMETER 5 |
85 |
| - |
86 |
| -/* Proximity |
87 |
| - * The values correspond to the distance to the nearest |
88 |
| - * object in centimeters. |
89 |
| - */ |
90 |
| - |
91 |
| -#define SENSOR_TYPE_PROXIMITY 6 |
| 91 | +#define SENSOR_TYPE_BAROMETER 6 |
92 | 92 |
|
93 |
| -/* Relative Humidity |
94 |
| - * A relative humidity sensor measure relative ambient air humidity and |
95 |
| - * return a value in percent. |
| 93 | +/* Noise Loudness |
| 94 | + * A sensor of this type returns the loudness of noise in SI units (db) |
96 | 95 | */
|
97 | 96 |
|
98 |
| -#define SENSOR_TYPE_RELATIVE_HUMIDITY 7 |
| 97 | +#define SENSOR_TYPE_NOISE 7 |
99 | 98 |
|
100 |
| -/* Ambient Temperature |
101 |
| - * The ambient (room) temperature in degree Celsius |
| 99 | +/* Proximity |
| 100 | + * The values correspond to the distance to the nearest |
| 101 | + * object in centimeters. |
102 | 102 | */
|
103 | 103 |
|
104 |
| -#define SENSOR_TYPE_AMBIENT_TEMPERATURE 8 |
| 104 | +#define SENSOR_TYPE_PROXIMITY 8 |
105 | 105 |
|
106 | 106 | /* RGB
|
107 | 107 | * We use these values of RGB to weighted to obtain the color of LED.
|
|
124 | 124 |
|
125 | 125 | #define SENSOR_TYPE_IR 11
|
126 | 126 |
|
127 |
| -/* Ultraviolet light sensor |
128 |
| - * This sensor can identify the UV index in ambient light help people |
129 |
| - * to effectively protect themselves from sunburns, cancer or eye damage. |
130 |
| - * This value range is 0 - 15. |
| 127 | +/* Relative Humidity |
| 128 | + * A relative humidity sensor measure relative ambient air humidity and |
| 129 | + * return a value in percent. |
131 | 130 | */
|
132 |
| -#define SENSOR_TYPE_ULTRAVIOLET 12 |
133 | 131 |
|
134 |
| -/* Noise Loudness |
135 |
| - * A sensor of this type returns the loudness of noise in SI units (db) |
| 132 | +#define SENSOR_TYPE_RELATIVE_HUMIDITY 12 |
| 133 | + |
| 134 | +/* Ambient Temperature |
| 135 | + * The ambient (room) temperature in degree Celsius |
136 | 136 | */
|
137 | 137 |
|
138 |
| -#define SENSOR_TYPE_NOISE 13 |
| 138 | +#define SENSOR_TYPE_AMBIENT_TEMPERATURE 13 |
139 | 139 |
|
140 | 140 | /* PM25
|
141 | 141 | * A sensor of this type returns the content of pm2.5 in the air
|
|
188 | 188 |
|
189 | 189 | #define SENSOR_TYPE_PH 20
|
190 | 190 |
|
191 |
| -/* Dust |
192 |
| - * A sensor of this type returns the content of dust in the air |
193 |
| - * values is in ug/m^3. |
194 |
| - */ |
195 |
| - |
196 |
| -#define SENSOR_TYPE_DUST 21 |
197 |
| - |
198 | 191 | /* Heart Rate
|
199 | 192 | * A sensor of this type returns the current heart rate.
|
200 | 193 | * Current heart rate is in beats per minute (BPM).
|
201 | 194 | */
|
202 | 195 |
|
203 |
| -#define SENSOR_TYPE_HEART_RATE 22 |
| 196 | +#define SENSOR_TYPE_HEART_RATE 21 |
204 | 197 |
|
205 |
| -/* Heart Beat |
206 |
| - * A sensor of this type returns an event evetytime |
207 |
| - * a hear beat peek is detected. Peak here ideally corresponds |
208 |
| - * to the positive peak in the QRS complex of and ECG signal. |
| 198 | +/* Dust |
| 199 | + * A sensor of this type returns the content of dust in the air |
| 200 | + * values is in ug/m^3. |
209 | 201 | */
|
210 | 202 |
|
211 |
| -#define SENSOR_TYPE_HEART_BEAT 23 |
| 203 | +#define SENSOR_TYPE_DUST 22 |
| 204 | + |
| 205 | +/* Wake gesture |
| 206 | + * A sensor enabling waking up the device based on a device specific |
| 207 | + * motion. 0: the device should sleep, 1: the device should wake up. |
| 208 | + * Other values are uncalibrated values reported by the driver to |
| 209 | + * uncalibrated topics. |
| 210 | + */ |
| 211 | + |
| 212 | +#define SENSOR_TYPE_WAKE_GESTURE 23 |
212 | 213 |
|
213 | 214 | /* ECG (Electrocardiogram)
|
214 | 215 | * A sensor of this type returns the ECG voltage in μV. Sensors may amplify
|
|
257 | 258 |
|
258 | 259 | #define SENSOR_TYPE_OTS 28
|
259 | 260 |
|
260 |
| -/* Wake gesture |
261 |
| - * A sensor enabling waking up the device based on a device specific |
262 |
| - * motion. 0: the device should sleep, 1: the device should wake up. |
263 |
| - * Other values are uncalibrated values reported by the driver to |
264 |
| - * uncalibrated topics. |
| 261 | +/* Gas sensor |
| 262 | + * This sensor measures the gas resistance, indicating the presence |
| 263 | + * of volatile organic compounds in the air. |
265 | 264 | */
|
266 | 265 |
|
267 |
| -#define SENSOR_TYPE_WAKE_GESTURE 29 |
| 266 | +#define SENSOR_TYPE_GAS 29 |
268 | 267 |
|
269 | 268 | /* CAP (Capacitive proximity sensor)
|
270 | 269 | * The purpose of the proximity sensing interface is to detect when a
|
|
274 | 273 |
|
275 | 274 | #define SENSOR_TYPE_CAP 30
|
276 | 275 |
|
277 |
| -/* Gas sensor |
278 |
| - * This sensor measures the gas resistance, indicating the presence |
279 |
| - * of volatile organic compounds in the air. |
| 276 | +/* Heart Beat |
| 277 | + * A sensor of this type returns an event evetytime |
| 278 | + * a hear beat peek is detected. Peak here ideally corresponds |
| 279 | + * to the positive peak in the QRS complex of and ECG signal. |
280 | 280 | */
|
281 | 281 |
|
282 |
| -#define SENSOR_TYPE_GAS 31 |
| 282 | +#define SENSOR_TYPE_HEART_BEAT 31 |
283 | 283 |
|
284 | 284 | /* Force
|
285 | 285 | * A sensor of this type measures the force on it, and additionally
|
|
0 commit comments