Class DexterThermalIRSensor

    • Constructor Detail

      • DexterThermalIRSensor

        public DexterThermalIRSensor​(I2CPort port)
        Construct a sensor instance that is connected to port.
        Parameters:
        port - The NXT port to use
      • DexterThermalIRSensor

        public DexterThermalIRSensor​(Port port)
    • Method Detail

      • init

        protected void init()
      • setEmissivity

        public void setEmissivity​(float emissivity)
        Set the sensor's emissivity value. Valid values are 0.01-1.0. The emissivity is stored in non-volatile memory of the sensor and will be retained even after power-off.

        < 0.01 returns with no action. > 1.0 sets to 1.0

        Parameters:
        emissivity - The value to set emissivity coefficient to
      • getEmissivity

        public float getEmissivity()
        Read the current emissivity value.

        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.

        Returns:
        The emissivity value from 0.01 to 1.0
      • getProductID

        public java.lang.String getProductID()
        Description copied from class: I2CSensor
        Read the sensor's product identifier. This method reads up to 8 bytes and returns the characters before the zero termination byte. Examples: "Sonar", ...
        Overrides:
        getProductID in class I2CSensor
        Returns:
        product identifier
      • getVendorID

        public java.lang.String getVendorID()
        Description copied from class: I2CSensor
        Read the sensor's vendor identifier. This method reads up to 8 bytes and returns the characters before the zero termination byte. Examples: "LEGO", "HiTechnc", ...
        Overrides:
        getVendorID in class I2CSensor
        Returns:
        vendor identifier
      • getObjectMode

        public SensorMode getObjectMode()
        Dexter Industries Thermal Infrared Sensor, Object mode
        Measures the temperature of an objects surface

        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.

        Returns:
        A sampleProvider See leJOS conventions for SampleProviders See Sensor datasheet
      • getAmbientMode

        public SensorMode getAmbientMode()
        Dexter Industries Thermal Infrared Sensor, Ambient mode
        Measures the ambient temperature

        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).

        Returns:
        A sampleProvider See leJOS conventions for SampleProviders See Sensor datasheet