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

#include <AP_Baro_SITL.h>

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

Classes

struct  readings_baro
 

Public Member Functions

 AP_Baro_SITL (AP_Baro &)
 
void update () override
 
- 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
 

Protected Member Functions

void update_healthy_flag (uint8_t instance) override
 
- Protected Member Functions inherited from AP_Baro_Backend
void _copy_to_frontend (uint8_t instance, float pressure, float temperature)
 

Private Member Functions

void temperature_adjustment (float &p, float &T)
 
void _timer ()
 

Private Attributes

uint8_t _instance
 
SITL::SITL_sitl
 
uint8_t _store_index
 
uint32_t _last_store_time
 
VectorN< readings_baro, _buffer_length_buffer
 
bool _has_sample
 
uint32_t _last_sample_time
 
float _recent_temp
 
float _recent_press
 

Static Private Attributes

static const uint8_t _buffer_length = 50
 

Additional Inherited Members

- 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 9 of file AP_Baro_SITL.h.

Constructor & Destructor Documentation

◆ AP_Baro_SITL()

AP_Baro_SITL::AP_Baro_SITL ( AP_Baro baro)

Definition at line 13 of file AP_Baro_SITL.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ _timer()

void AP_Baro_SITL::_timer ( void  )
private

Definition at line 45 of file AP_Baro_SITL.cpp.

Referenced by AP_Baro_SITL().

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

◆ temperature_adjustment()

void AP_Baro_SITL::temperature_adjustment ( float &  p,
float &  T 
)
private

Definition at line 28 of file AP_Baro_SITL.cpp.

Referenced by _timer().

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

◆ update()

void AP_Baro_SITL::update ( void  )
overridevirtual

Implements AP_Baro_Backend.

Definition at line 122 of file AP_Baro_SITL.cpp.

Here is the call graph for this function:

◆ update_healthy_flag()

void AP_Baro_SITL::update_healthy_flag ( uint8_t  instance)
inlineoverrideprotectedvirtual

Reimplemented from AP_Baro_Backend.

Definition at line 17 of file AP_Baro_SITL.h.

Member Data Documentation

◆ _buffer

VectorN<readings_baro, _buffer_length> AP_Baro_SITL::_buffer
private

Definition at line 31 of file AP_Baro_SITL.h.

Referenced by _timer().

◆ _buffer_length

const uint8_t AP_Baro_SITL::_buffer_length = 50
staticprivate

Definition at line 30 of file AP_Baro_SITL.h.

Referenced by _timer().

◆ _has_sample

bool AP_Baro_SITL::_has_sample
private

Definition at line 37 of file AP_Baro_SITL.h.

Referenced by _timer(), and update().

◆ _instance

uint8_t AP_Baro_SITL::_instance
private

Definition at line 20 of file AP_Baro_SITL.h.

Referenced by AP_Baro_SITL(), and update().

◆ _last_sample_time

uint32_t AP_Baro_SITL::_last_sample_time
private

Definition at line 38 of file AP_Baro_SITL.h.

Referenced by _timer().

◆ _last_store_time

uint32_t AP_Baro_SITL::_last_store_time
private

Definition at line 29 of file AP_Baro_SITL.h.

Referenced by _timer().

◆ _recent_press

float AP_Baro_SITL::_recent_press
private

Definition at line 40 of file AP_Baro_SITL.h.

Referenced by _timer(), and update().

◆ _recent_temp

float AP_Baro_SITL::_recent_temp
private

Definition at line 39 of file AP_Baro_SITL.h.

Referenced by _timer(), and update().

◆ _sitl

SITL::SITL* AP_Baro_SITL::_sitl
private

Definition at line 21 of file AP_Baro_SITL.h.

Referenced by _timer(), AP_Baro_SITL(), and temperature_adjustment().

◆ _store_index

uint8_t AP_Baro_SITL::_store_index
private

Definition at line 28 of file AP_Baro_SITL.h.

Referenced by _timer().


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