upm  1.1.0
Sensor/Actuator repository for libmraa (v1.5.1)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
ABPDRRT005PG2A5 Class Reference

API for the ABP Honeywell Pressure Sensor. More...

Detailed Description

This is the UPM Module for the ABPDRRT005PG2A5 Honeywell Pressure sensor. This sensor uses an onboard ASIC to output values of pressure that are updated at approximately 2 KHz. It is capable of detecting pressure in the 0-5 psi range and it has an i2c based interface. Temperature calculation using this sensor is not recommended as the values are not calibrated.

abpdrrt005pg2a5.jpg
// Instantiate an A110X sensor on digital pin D2
upm::ABPDRRT005PG2A5* abp = new upm::ABPDRRT005PG2A5(0, ABPDRRT005PG2A5_ADDRESS);
// check every second for the presence of a magnetic field (south
// polarity)
while (shouldRun)
{
float x = abp->get_pressure_psi();
cout << "psi pressure: " << x << endl;
float y = abp->get_pressure_pascal();
cout << "pascal pressure: " << y << endl;
sleep(1);
}

Public Member Functions

 ABPDRRT005PG2A5 (int bus, int devAddress)
 
 ~ABPDRRT005PG2A5 ()
 
float get_pressure_psi ()
 
float get_pressure_pascal ()
 

Constructor & Destructor Documentation

ABPDRRT005PG2A5 ( int  bus,
int  devAddress 
)

ABPDRRT005PG2A5 constructor

Parameters
busi2c bus to be used
devAddressi2c address of the sensor

ABPDRRT005PG2A5 destructor

Here is the call graph for this function:

Member Function Documentation

float get_pressure_psi ( )

Get pressure in pounds per square inch

Returns
pressure in psi

Here is the call graph for this function:

float get_pressure_pascal ( )

Get pressure in pascals

Returns
pressure in pascal

Here is the call graph for this function:


The documentation for this class was generated from the following files: