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

#include <AP_Airspeed_Backend.h>

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

Public Member Functions

 AP_Airspeed_Backend (AP_Airspeed &frontend, uint8_t instance)
 
virtual ~AP_Airspeed_Backend ()
 
virtual bool init (void)=0
 
virtual bool get_differential_pressure (float &pressure)=0
 
virtual bool get_temperature (float &temperature)=0
 

Protected Member Functions

int8_t get_pin (void) const
 
float get_psi_range (void) const
 
uint8_t get_bus (void) const
 
AP_Airspeed::pitot_tube_order get_tube_order (void) const
 
float get_airspeed_ratio (void) const
 
void set_use_zero_offset (void)
 
void set_skip_cal (void)
 
void set_offset (float ofs)
 

Protected Attributes

AP_HAL::Semaphoresem
 

Private Attributes

AP_Airspeedfrontend
 
uint8_t instance
 

Detailed Description

Definition at line 25 of file AP_Airspeed_Backend.h.

Constructor & Destructor Documentation

◆ AP_Airspeed_Backend()

AP_Airspeed_Backend::AP_Airspeed_Backend ( AP_Airspeed frontend,
uint8_t  instance 
)

Definition at line 27 of file AP_Airspeed_Backend.cpp.

Here is the call graph for this function:

◆ ~AP_Airspeed_Backend()

AP_Airspeed_Backend::~AP_Airspeed_Backend ( void  )
virtual

Definition at line 34 of file AP_Airspeed_Backend.cpp.

Member Function Documentation

◆ get_airspeed_ratio()

float AP_Airspeed_Backend::get_airspeed_ratio ( void  ) const
inlineprotected

Definition at line 51 of file AP_Airspeed_Backend.h.

Referenced by AP_Airspeed_SDP3X::_correct_pressure().

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

◆ get_bus()

uint8_t AP_Airspeed_Backend::get_bus ( void  ) const
protected

Definition at line 50 of file AP_Airspeed_Backend.cpp.

Referenced by AP_Airspeed_SDP3X::init(), and AP_Airspeed_MS5525::init().

Here is the caller graph for this function:

◆ get_differential_pressure()

virtual bool AP_Airspeed_Backend::get_differential_pressure ( float &  pressure)
pure virtual

Implemented in AP_Airspeed_MS5525, AP_Airspeed_SDP3X, AP_Airspeed_MS4525, and AP_Airspeed_Analog.

Referenced by AP_Airspeed::get_pressure().

Here is the caller graph for this function:

◆ get_pin()

int8_t AP_Airspeed_Backend::get_pin ( void  ) const
protected

Definition at line 40 of file AP_Airspeed_Backend.cpp.

Referenced by AP_Airspeed_Analog::AP_Airspeed_Analog(), and AP_Airspeed_Analog::get_differential_pressure().

Here is the caller graph for this function:

◆ get_psi_range()

float AP_Airspeed_Backend::get_psi_range ( void  ) const
protected

Definition at line 45 of file AP_Airspeed_Backend.cpp.

Referenced by AP_Airspeed_MS4525::_get_pressure(), and AP_Airspeed_Analog::get_differential_pressure().

Here is the caller graph for this function:

◆ get_temperature()

virtual bool AP_Airspeed_Backend::get_temperature ( float &  temperature)
pure virtual

Implemented in AP_Airspeed_MS5525, AP_Airspeed_SDP3X, AP_Airspeed_MS4525, and AP_Airspeed_Analog.

Referenced by AP_Airspeed::get_airspeed_ratio(), and AP_Airspeed::get_temperature().

Here is the caller graph for this function:

◆ get_tube_order()

AP_Airspeed::pitot_tube_order AP_Airspeed_Backend::get_tube_order ( void  ) const
inlineprotected

Definition at line 44 of file AP_Airspeed_Backend.h.

Referenced by AP_Airspeed_SDP3X::_correct_pressure().

Here is the caller graph for this function:

◆ init()

virtual bool AP_Airspeed_Backend::init ( void  )
pure virtual

◆ set_offset()

void AP_Airspeed_Backend::set_offset ( float  ofs)
inlineprotected

Definition at line 66 of file AP_Airspeed_Backend.h.

Referenced by AP_Airspeed_SDP3X::init().

Here is the caller graph for this function:

◆ set_skip_cal()

void AP_Airspeed_Backend::set_skip_cal ( void  )
inlineprotected

Definition at line 61 of file AP_Airspeed_Backend.h.

Referenced by AP_Airspeed_SDP3X::init().

Here is the caller graph for this function:

◆ set_use_zero_offset()

void AP_Airspeed_Backend::set_use_zero_offset ( void  )
inlineprotected

Definition at line 56 of file AP_Airspeed_Backend.h.

Referenced by AP_Airspeed_SDP3X::init().

Here is the caller graph for this function:

Member Data Documentation

◆ frontend

AP_Airspeed& AP_Airspeed_Backend::frontend
private

Definition at line 71 of file AP_Airspeed_Backend.h.

Referenced by get_bus(), get_pin(), and get_psi_range().

◆ instance

uint8_t AP_Airspeed_Backend::instance
private

◆ sem

AP_HAL::Semaphore* AP_Airspeed_Backend::sem
protected

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