Bosch I2C pressure and temperature sensor capable of measuring 30000 Pa to 110000 Pa. Equivalent to 500m below sea level up to 9,000m above sea level.
This must be connected to an I2C bus. It may be defined using:
BMP085 sensor = MAKE_BMP085(0);
Where the parameter is a value from 0 to 3. Higher numbers are more accurate but require more current and take longer to return values.
The sensor should be initialised in appInitHardware using:-
The sensor can then be read using:-
and then the pressure, in Pascals, will be in sensor.pressure.pa and the temperature, in celsius, will be in sensor.celsius.