MAV'RIC
Public Member Functions
Barometer_sim Class Reference

Simulation for barometers. More...

#include <barometer_sim.hpp>

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

List of all members.

Public Member Functions

 Barometer_sim (Dynamic_model &dynamic_model)
 Constructor.
bool init (void)
 Initialise the sensor.
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

Simulation for barometers.


Constructor & Destructor Documentation

Constructor.

Parameters:
dynamic_modelReference to dynamic model

Member Function Documentation

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

Get the altitude in meters above sea level.

Global frame: (>0 means upward)

Returns:
Value

Implements Barometer.

Here is the caller graph for this function:

float Barometer_sim::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.

Here is the call graph for this function:

bool Barometer_sim::init ( void  ) [virtual]

Initialise the sensor.

Returns:
Success

Implements Barometer.

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

Get the last update time in microseconds.

Returns:
Value

Implements Barometer.

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

Return the pressure (in Pa)

Returns:
Value

Implements Barometer.

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

Get sensor temperature.

Returns:
Value

Implements Barometer.

bool Barometer_sim::update ( void  ) [virtual]

Main update function Reads new values from sensor.

Returns:
Success

Implements Barometer.

Here is the call graph for this function:

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

Get the vertical speed in meters/second.

NED frame: (>0 means downward)

Returns:
Value

Implements Barometer.

Here is the caller graph for this function:

float Barometer_sim::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.

Here is the call graph for this function:


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