APM:Libraries
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AP_Baro_Backend Class Referenceabstract

#include <AP_Baro_Backend.h>

Inheritance diagram for AP_Baro_Backend:
[legend]
Collaboration diagram for AP_Baro_Backend:
[legend]

Public Member Functions

 AP_Baro_Backend (AP_Baro &baro)
 
virtual ~AP_Baro_Backend (void)
 
virtual void update ()=0
 
virtual void accumulate (void)
 
virtual void handle_baro_msg (float pressure, float temperature)
 
void backend_update (uint8_t instance)
 
bool pressure_ok (float press)
 
uint32_t get_error_count () const
 

Protected Member Functions

void _copy_to_frontend (uint8_t instance, float pressure, float temperature)
 
virtual void update_healthy_flag (uint8_t instance)
 

Protected Attributes

AP_Baro_frontend
 
AP_HAL::Semaphore_sem
 
float _mean_pressure
 
uint32_t _error_count
 

Detailed Description

Definition at line 5 of file AP_Baro_Backend.h.

Constructor & Destructor Documentation

◆ AP_Baro_Backend()

AP_Baro_Backend::AP_Baro_Backend ( AP_Baro baro)

Definition at line 7 of file AP_Baro_Backend.cpp.

Here is the call graph for this function:

◆ ~AP_Baro_Backend()

virtual AP_Baro_Backend::~AP_Baro_Backend ( void  )
inlinevirtual

Definition at line 9 of file AP_Baro_Backend.h.

Here is the call graph for this function:

Member Function Documentation

◆ _copy_to_frontend()

void AP_Baro_Backend::_copy_to_frontend ( uint8_t  instance,
float  pressure,
float  temperature 
)
protected

Definition at line 43 of file AP_Baro_Backend.cpp.

Referenced by AP_Baro_MS56XX::_calculate_5607(), AP_Baro_MS56XX::_calculate_5611(), AP_Baro_MS56XX::_calculate_5637(), AP_Baro_MS56XX::_calculate_5837(), AP_Baro_HIL::update(), AP_Baro_SITL::update(), AP_Baro_DPS280::update(), AP_Baro_FBM320::update(), AP_Baro_ICM20789::update(), AP_Baro_BMP085::update(), AP_Baro_BMP280::update(), AP_Baro_LPS2XH::update(), and AP_Baro_KellerLD::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ accumulate()

virtual void AP_Baro_Backend::accumulate ( void  )
inlinevirtual

Definition at line 18 of file AP_Baro_Backend.h.

Referenced by AP_Baro::accumulate().

Here is the caller graph for this function:

◆ backend_update()

void AP_Baro_Backend::backend_update ( uint8_t  instance)

Definition at line 33 of file AP_Baro_Backend.cpp.

Referenced by handle_baro_msg(), and AP_Baro::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_error_count()

uint32_t AP_Baro_Backend::get_error_count ( ) const
inline

Definition at line 28 of file AP_Baro_Backend.h.

◆ handle_baro_msg()

virtual void AP_Baro_Backend::handle_baro_msg ( float  pressure,
float  temperature 
)
inlinevirtual

Reimplemented in AP_Baro_UAVCAN.

Definition at line 21 of file AP_Baro_Backend.h.

Here is the call graph for this function:

◆ pressure_ok()

bool AP_Baro_Backend::pressure_ok ( float  press)

Definition at line 67 of file AP_Baro_Backend.cpp.

Referenced by AP_Baro_BMP085::_calculate(), AP_Baro_KellerLD::_read(), AP_Baro_MS56XX::_timer(), AP_Baro_BMP280::_update_pressure(), AP_Baro_ICM20789::convert_data(), handle_baro_msg(), AP_Baro_FBM320::timer(), and AP_Baro_DPS280::timer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

virtual void AP_Baro_Backend::update ( )
pure virtual

Implemented in AP_Baro_KellerLD, AP_Baro_LPS2XH, AP_Baro_MS56XX, AP_Baro_BMP085, AP_Baro_BMP280, AP_Baro_ICM20789, AP_Baro_DPS280, AP_Baro_FBM320, AP_Baro_HIL, AP_Baro_SITL, and AP_Baro_UAVCAN.

Referenced by backend_update(), and ~AP_Baro_Backend().

Here is the caller graph for this function:

◆ update_healthy_flag()

void AP_Baro_Backend::update_healthy_flag ( uint8_t  instance)
protectedvirtual

Reimplemented in AP_Baro_SITL.

Definition at line 13 of file AP_Baro_Backend.cpp.

Referenced by backend_update().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _error_count

uint32_t AP_Baro_Backend::_error_count
protected

Definition at line 43 of file AP_Baro_Backend.h.

Referenced by get_error_count(), and pressure_ok().

◆ _frontend

AP_Baro& AP_Baro_Backend::_frontend
protected

◆ _mean_pressure

float AP_Baro_Backend::_mean_pressure
protected

Definition at line 41 of file AP_Baro_Backend.h.

Referenced by pressure_ok().

◆ _sem

AP_HAL::Semaphore* AP_Baro_Backend::_sem
protected

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