Instantiates a Gas object
- Parameters
-
| gasPin | Pin where gas is connected |
| int getSampledWindow |
( |
unsigned int |
freqMS, |
|
|
int |
numberOfSamples, |
|
|
uint16_t * |
buffer |
|
) |
| |
|
virtual |
Gets samples from the gas sensor according to the provided window and number of samples
- Parameters
-
| freqMS | Time between each sample (in milliseconds) |
| numberOfSamples | Number of sample to sample for this window |
| buffer | Buffer with sampled data |
| int findThreshold |
( |
thresholdContext * |
ctx, |
|
|
unsigned int |
threshold, |
|
|
uint16_t * |
buffer, |
|
|
int |
len |
|
) |
| |
|
virtual |
Given the sampled buffer, this method returns TRUE/FALSE if the threshold is reached
- Parameters
-
| ctx | Threshold context |
| threshold | Sample threshold |
| buffer | Buffer with samples |
| len | Buffer length |
Returns average data for the sampled window
- Parameters
-
Returns one sample from the sensor
Prints a running average of the threshold context
- Parameters
-
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc-stable/src/gas/gas.h
- /var/lib/jenkins/workspace/upm-doc-stable/src/gas/gas.cxx