|
HiTechnic Barometric Sensor driver. More...
#include "common.h"
Go to the source code of this file.
Defines | |
#define | HTBM_I2C_ADDR 0x02 |
#define | HTBM_OFFSET 0x42 |
#define | HTBM_TEMP_HIGH 0x00 |
#define | HTBM_TEMP_LOW 0x01 |
#define | HTBM_PRES_HIGH 0x02 |
#define | HTBM_PRES_LOW 0x03 |
Functions | |
long | HTBMreadMInHg (tSensors link) |
float | HTBMreadhPa (tSensors link) |
float | HTBMreadPsi (tSensors link) |
float | HTBMreadTemp (tSensors link) |
float | HTBMreadTempF (tSensors link) |
Variables | |
const float | mInHgtohPa = 0.03386389 |
const float | mInHgtoPsi = 0.491098/1000 |
tByteArray | HTBM_I2CRequest |
tByteArray | HTBM_I2CReply |
HiTechnic Barometric Sensor driver.
hitechnic-barometer.h provides an API for the HiTechnic Barometric Sensor.
Pressure values are between 0 and approx 31 inHG.
Temperature values are between -25C and +85C.
Changelog:
Credits:
License: You may use this code as you wish, provided you give credit where its due.
THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.
Definition in file hitechnic-barometer.h.