MAV'RIC
Public Member Functions
Barometer_BMP085 Class Reference

Driver for the BMP085 barometer. More...

#include <barometer_bmp085.hpp>

Inheritance diagram for Barometer_BMP085:
Inheritance graph
[legend]
Collaboration diagram for Barometer_BMP085:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Barometer_BMP085 (I2c &i2c)
 Constructor.
bool init (void)
 Initialise the sensor.
bool read_eprom_calibration (void)
 Read calibration data from EPROM.
bool update (void)
 Main update function Reads new values from sensor.
uint64_t last_update_us (void) const
 Get the last update time in microseconds.
float pressure (void) const
 Return the pressure (in Pa)
float altitude_gf (void) const
 Get the altitude in meters above sea level.
float altitude_gf_raw (void) const
 Get the altitude in meters above sea level (not filtered)
float vertical_speed_lf (void) const
 Get the vertical speed in meters/second.
float vertical_speed_lf_raw (void) const
 Get the vertical speed in meters/second (not filtered)
float temperature (void) const
 Get sensor temperature.

Detailed Description

Driver for the BMP085 barometer.


Constructor & Destructor Documentation

Constructor.

Parameters:
i2cReference to I2C device

Member Function Documentation

float Barometer_BMP085::altitude_gf ( void  ) const [virtual]

Get the altitude in meters above sea level.

Global frame: (>0 means upward)

Returns:
Value

Implements Barometer.

float Barometer_BMP085::altitude_gf_raw ( void  ) const [virtual]

Get the altitude in meters above sea level (not filtered)

Global frame: (>0 means upward)

Returns:
Value

Implements Barometer.

bool Barometer_BMP085::init ( void  ) [virtual]

Initialise the sensor.

Returns:
Success

Implements Barometer.

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t Barometer_BMP085::last_update_us ( void  ) const [virtual]

Get the last update time in microseconds.

Returns:
Value

Implements Barometer.

float Barometer_BMP085::pressure ( void  ) const [virtual]

Return the pressure (in Pa)

Returns:
Value

Implements Barometer.

Read calibration data from EPROM.

Returns:
Success

Here is the call graph for this function:

Here is the caller graph for this function:

float Barometer_BMP085::temperature ( void  ) const [virtual]

Get sensor temperature.

Returns:
Value

Implements Barometer.

bool Barometer_BMP085::update ( void  ) [virtual]

Main update function Reads new values from sensor.

Returns:
Success

< step 1

< do pressure calcs

Implements Barometer.

Here is the call graph for this function:

float Barometer_BMP085::vertical_speed_lf ( void  ) const [virtual]

Get the vertical speed in meters/second.

NED frame: (>0 means downward)

Returns:
Value

Implements Barometer.

float Barometer_BMP085::vertical_speed_lf_raw ( void  ) const [virtual]

Get the vertical speed in meters/second (not filtered)

NED frame: (>0 means downward)

Returns:
Value

Implements Barometer.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines