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

#include <AP_Baro_UAVCAN.h>

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

Public Member Functions

 AP_Baro_UAVCAN (AP_Baro &)
 
 ~AP_Baro_UAVCAN () override
 
void update () override
 
virtual void handle_baro_msg (float pressure, float temperature) override
 
bool register_uavcan_baro (uint8_t mgr, uint8_t node)
 
- Public Member Functions inherited from AP_Baro_Backend
 AP_Baro_Backend (AP_Baro &baro)
 
virtual ~AP_Baro_Backend (void)
 
virtual void accumulate (void)
 
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)
 

Private Attributes

uint8_t _instance
 
float _pressure
 
float _temperature
 
uint64_t _last_timestamp
 
uint8_t _manager
 
bool _initialized
 
AP_HAL::Semaphore_sem_baro
 

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 6 of file AP_Baro_UAVCAN.h.

Constructor & Destructor Documentation

◆ AP_Baro_UAVCAN()

AP_Baro_UAVCAN::AP_Baro_UAVCAN ( AP_Baro )

◆ ~AP_Baro_UAVCAN()

AP_Baro_UAVCAN::~AP_Baro_UAVCAN ( )
override

Member Function Documentation

◆ handle_baro_msg()

virtual void AP_Baro_UAVCAN::handle_baro_msg ( float  pressure,
float  temperature 
)
overridevirtual

Reimplemented from AP_Baro_Backend.

◆ probe()

static AP_Baro_Backend* AP_Baro_UAVCAN::probe ( AP_Baro baro)
static

Referenced by AP_Baro::init().

Here is the caller graph for this function:

◆ register_uavcan_baro()

bool AP_Baro_UAVCAN::register_uavcan_baro ( uint8_t  mgr,
uint8_t  node 
)

◆ update()

void AP_Baro_UAVCAN::update ( )
overridevirtual

Implements AP_Baro_Backend.

Member Data Documentation

◆ _initialized

bool AP_Baro_UAVCAN::_initialized
private

Definition at line 27 of file AP_Baro_UAVCAN.h.

◆ _instance

uint8_t AP_Baro_UAVCAN::_instance
private

Definition at line 21 of file AP_Baro_UAVCAN.h.

◆ _last_timestamp

uint64_t AP_Baro_UAVCAN::_last_timestamp
private

Definition at line 24 of file AP_Baro_UAVCAN.h.

◆ _manager

uint8_t AP_Baro_UAVCAN::_manager
private

Definition at line 25 of file AP_Baro_UAVCAN.h.

◆ _pressure

float AP_Baro_UAVCAN::_pressure
private

Definition at line 22 of file AP_Baro_UAVCAN.h.

◆ _sem_baro

AP_HAL::Semaphore* AP_Baro_UAVCAN::_sem_baro
private

Definition at line 29 of file AP_Baro_UAVCAN.h.

◆ _temperature

float AP_Baro_UAVCAN::_temperature
private

Definition at line 23 of file AP_Baro_UAVCAN.h.


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