Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Defines | Functions | Variables

hitechnic-barometer.h File Reference

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

Detailed Description

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.

Author:
Xander Soldaat (xander_at_botbench.com)
Date:
20 February 2011
Version:
0.2

Definition in file hitechnic-barometer.h.