public class DexterThermalIRSensor extends I2CSensor
The code for this sensor has not been tested. Please report test results to the leJOS forum.
Supported modes | |||
---|---|---|---|
Mode name | Description | unit(s) | Getter |
Object | Measures the temperature of an objects surface | Kelvin | getObjectMode() |
Ambient | Measures the ambient temperature | Kelvin | getAmbientMode() |
Sensor configuration
The Emissivity value of the sensor can be configured using the setEmissivity(float)
method.
See Sensor datasheet
See Sensor Product page
See The
leJOS sensor framework
See leJOS conventions for
SampleProviders
address, DEFAULT_I2C_ADDRESS, port, REG_PRODUCT_ID, REG_VENDOR_ID, REG_VERSION, retryCount
currentMode, modes
BLACK, BLANK_INDEX, BLUE, BLUE_INDEX, BROWN, GREEN, GREEN_INDEX, MAX_TYPE, MIN_TYPE, MODE_RAW, NXT_ADC_RES, RED, RED_INDEX, TYPE_ANGLE, TYPE_COLORBLUE, TYPE_COLORFULL, TYPE_COLORGREEN, TYPE_COLORNONE, TYPE_COLORRED, TYPE_CUSTOM, TYPE_HIGHSPEED, TYPE_HIGHSPEED_9V, TYPE_HISPEED, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE, WHITE, YELLOW
Constructor and Description |
---|
DexterThermalIRSensor(I2CPort port)
Construct a sensor instance that is connected to
port . |
DexterThermalIRSensor(Port port) |
Modifier and Type | Method and Description |
---|---|
SensorMode |
getAmbientMode()
Dexter Industries Thermal Infrared Sensor, Ambient mode
Measures the ambient temperature |
float |
getEmissivity()
Read the current emissivity value.
|
SensorMode |
getObjectMode()
Dexter Industries Thermal Infrared Sensor, Object mode
Measures the temperature of an objects surface |
java.lang.String |
getProductID()
Read the sensor's product identifier.
|
java.lang.String |
getVendorID()
Read the sensor's vendor identifier.
|
protected void |
init() |
void |
setEmissivity(float emissivity)
Set the sensor's emissivity value.
|
fetchString, getAddress, getData, getData, getPort, getRetryCount, getVersion, sendData, sendData, sendData, setAddress, setRetryCount
fetchSample, getAvailableModes, getCurrentMode, getMode, getMode, getModeCount, getName, sampleSize, setCurrentMode, setCurrentMode, setModes
close, releaseOnClose
public DexterThermalIRSensor(I2CPort port)
port
.port
- The NXT port to usepublic DexterThermalIRSensor(Port port)
protected void init()
public void setEmissivity(float emissivity)
< 0.01 returns with no action. > 1.0 sets to 1.0
emissivity
- The value to set emissivity coefficient topublic float getEmissivity()
Caveat Emptor: The sensor appears to only return the emissivity value
after it was intially set after power-up with setEmissivity()
. It doesn't seem
to retrieve it from EEPROM.
public java.lang.String getProductID()
I2CSensor
getProductID
in class I2CSensor
public java.lang.String getVendorID()
I2CSensor
getVendorID
in class I2CSensor
public SensorMode getObjectMode()
Size and content of the sample
The sample contains one elements representing the surface temperature (in Kelvin) of an object. the sensor can read object temperatures between -90°F and 700°F
(-70°C and +380°C). The sensor has a high accuracy of 0.5°C and a resolution of 0.02°C.
leJOS conventions for
SampleProviders
See Sensor datasheet public SensorMode getAmbientMode()
Size and content of the sample
The sample contains one elements representing the ambient temperature (in Kelvin) (the temperature of the air around the sensor).
leJOS conventions for
SampleProviders
See Sensor datasheet