APM:Libraries
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
AP_Baro_KellerLD Class Reference

#include <AP_Baro_KellerLD.h>

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

Public Member Functions

void update ()
 
- Public Member Functions inherited from AP_Baro_Backend
 AP_Baro_Backend (AP_Baro &baro)
 
virtual ~AP_Baro_Backend (void)
 
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
 

Static Public Member Functions

static AP_Baro_Backendprobe (AP_Baro &baro, AP_HAL::OwnPtr< AP_HAL::Device > dev)
 

Private Member Functions

 AP_Baro_KellerLD (AP_Baro &baro, AP_HAL::OwnPtr< AP_HAL::Device > dev)
 
bool _init ()
 
void _timer ()
 
bool _read ()
 
void _update_and_wrap_accumulator (uint16_t pressure, uint16_t temperature, uint8_t max_count)
 

Private Attributes

AP_HAL::OwnPtr< AP_HAL::Device_dev
 
struct {
   uint32_t   sum_pressure
 
   uint32_t   sum_temperature
 
   uint8_t   num_samples
 
_accum
 
uint8_t _instance
 
float _p_min
 
float _p_max
 

Additional Inherited Members

- Protected Member Functions inherited from AP_Baro_Backend
void _copy_to_frontend (uint8_t instance, float pressure, float temperature)
 
virtual void update_healthy_flag (uint8_t instance)
 
- Protected Attributes inherited from AP_Baro_Backend
AP_Baro_frontend
 
AP_HAL::Semaphore_sem
 
float _mean_pressure
 
uint32_t _error_count
 

Detailed Description

Definition at line 38 of file AP_Baro_KellerLD.h.

Constructor & Destructor Documentation

◆ AP_Baro_KellerLD()

AP_Baro_KellerLD::AP_Baro_KellerLD ( AP_Baro baro,
AP_HAL::OwnPtr< AP_HAL::Device dev 
)
private

Definition at line 42 of file AP_Baro_KellerLD.cpp.

Referenced by probe().

Here is the caller graph for this function:

Member Function Documentation

◆ _init()

bool AP_Baro_KellerLD::_init ( void  )
private

Definition at line 64 of file AP_Baro_KellerLD.cpp.

Referenced by probe().

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

◆ _read()

bool AP_Baro_KellerLD::_read ( )
private

Definition at line 165 of file AP_Baro_KellerLD.cpp.

Referenced by _timer().

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

◆ _timer()

void AP_Baro_KellerLD::_timer ( void  )
private

Definition at line 207 of file AP_Baro_KellerLD.cpp.

Referenced by _init().

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

◆ _update_and_wrap_accumulator()

void AP_Baro_KellerLD::_update_and_wrap_accumulator ( uint16_t  pressure,
uint16_t  temperature,
uint8_t  max_count 
)
private

Definition at line 214 of file AP_Baro_KellerLD.cpp.

Referenced by _read().

Here is the caller graph for this function:

◆ probe()

AP_Baro_Backend * AP_Baro_KellerLD::probe ( AP_Baro baro,
AP_HAL::OwnPtr< AP_HAL::Device dev 
)
static

Definition at line 49 of file AP_Baro_KellerLD.cpp.

Referenced by AP_Baro::init().

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

◆ update()

void AP_Baro_KellerLD::update ( void  )
virtual

Implements AP_Baro_Backend.

Definition at line 228 of file AP_Baro_KellerLD.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _accum

struct { ... } AP_Baro_KellerLD::_accum

◆ _dev

AP_HAL::OwnPtr<AP_HAL::Device> AP_Baro_KellerLD::_dev
private

Definition at line 56 of file AP_Baro_KellerLD.h.

Referenced by _init(), _read(), and _timer().

◆ _instance

uint8_t AP_Baro_KellerLD::_instance
private

Definition at line 66 of file AP_Baro_KellerLD.h.

Referenced by _init(), and update().

◆ _p_max

float AP_Baro_KellerLD::_p_max
private

Definition at line 71 of file AP_Baro_KellerLD.h.

Referenced by _init(), and update().

◆ _p_min

float AP_Baro_KellerLD::_p_min
private

Definition at line 70 of file AP_Baro_KellerLD.h.

Referenced by _init(), and update().

◆ num_samples

uint8_t AP_Baro_KellerLD::num_samples

Definition at line 63 of file AP_Baro_KellerLD.h.

Referenced by update().

◆ sum_pressure

uint32_t AP_Baro_KellerLD::sum_pressure

Definition at line 61 of file AP_Baro_KellerLD.h.

Referenced by update().

◆ sum_temperature

uint32_t AP_Baro_KellerLD::sum_temperature

Definition at line 62 of file AP_Baro_KellerLD.h.

Referenced by update().


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