Class HiTechnicBarometer

    • Constructor Detail

      • HiTechnicBarometer

        public HiTechnicBarometer​(I2CPort port)
        Constructor.
        Parameters:
        port - the I2CPort the sensor is connected to.
      • HiTechnicBarometer

        public HiTechnicBarometer​(I2CPort port,
                                  int address)
        Constructor.
        Parameters:
        port - the I2CPort the sensor is connected to.
        address - the address
      • HiTechnicBarometer

        public HiTechnicBarometer​(Port port,
                                  int address)
      • HiTechnicBarometer

        public HiTechnicBarometer​(Port port)
    • Method Detail

      • init

        protected void init()
      • calibrate

        public void calibrate​(float pascals)
        Re-calibrates the sensor.
        Parameters:
        pascals - the calibration value in pascals
      • getCalibrationMetric

        public float getCalibrationMetric()
        Returns:
        the present calibration value in pascals. Will be 0 in case no explicit calibration has been performed.
      • getPressureMode

        public SensorMode getPressureMode()
        HiTechnic Barometer, Pressure mode
        Measures the atmospheric pressure of the air.

        Size and content of the sample
        The sample contains one element containing the atmospheric pressure (in Pascal) of the air.

      • getTemperatureMode

        public SensorMode getTemperatureMode()
        HiTechnic Barometer, Temperature mode
        Measures the temperature of the air.

        Size and content of the sample
        The sample contains one element containing the air temperature (in degree celcius).