public class Barometer extends SensorTask
The barometer posts the following data:
DataEvent.DATA_SOURCE_PRESSURE
DataEvent.DATA_SOURCE_TEMPERATURE
Modifier and Type | Class and Description |
---|---|
private class |
Barometer.ReadTask
Samples the TAI8570 Pressure SensorTask on the configured schedule.
|
Modifier and Type | Field and Description |
---|---|
private static byte[] |
FAMILY
DS2406 dual addressable switch family code.
|
private java.lang.String |
file
Configured file name.
|
private double[] |
pCoeffs
Barometer calibration coefficients.
|
private com.dalsemi.onewire.container.OneWireContainer12 |
sensorRx
DS2406 dual addressable switch for sensor reads.
|
private com.dalsemi.onewire.container.OneWireContainer12 |
sensorTx
DS2406 dual addressable switch for sensor writes.
|
private double[] |
tCoeffs
Barometer calibration coefficients.
|
adapter, address, cancel, CFG_DEVICE_ADDRESS_KEY, CFG_DEVICE_CHANNEL_KEY, CFG_DEVICE_OFFSET_KEY, CFG_DEVICE_SCALE_KEY, CFG_SAMPLING_INTERVAL_KEY, config, dataExchange, LOGGER, name, ONE_WIRE_TIMEOUT, population, SENSOR_TIMEOUT
Constructor and Description |
---|
Barometer(java.lang.String name,
com.dalsemi.onewire.adapter.DSPortAdapter adapter,
java.util.Properties config,
IDataExchange dataExchange,
IServiceControl serviceControl)
Creates a new instance of Barometer for the TAI8570.
|
beginExclusive, curveFit, doADConvertEFT, doADConvertEFT, doTemperatureConvertEFT, endExclusive, findContainerEFT, findContainerEFT, findContainerEFT, getADVoltageEFT, getADVoltageEFT, getTemperatureEFT, readBytesEFT, readCounterEFT, readDeviceEFT, readFileEFT, setMaxTemperatureResolutionEFT, stdDev, toHexString, toString, writeByteEFT, writeDeviceEFT
private static final byte[] FAMILY
private java.lang.String file
private com.dalsemi.onewire.container.OneWireContainer12 sensorTx
private com.dalsemi.onewire.container.OneWireContainer12 sensorRx
private double[] pCoeffs
private double[] tCoeffs
public Barometer(java.lang.String name, com.dalsemi.onewire.adapter.DSPortAdapter adapter, java.util.Properties config, IDataExchange dataExchange, IServiceControl serviceControl)
name
- of this sensor task.adapter
- 1-Wire adapter.config
- configuration properties.dataExchange
- to notify with new data.serviceControl
- to schedule the task.