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

#include <AP_Airspeed_analog.h>

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

Public Member Functions

 AP_Airspeed_Analog (AP_Airspeed &frontend, uint8_t _instance)
 
bool init (void) override
 
bool get_differential_pressure (float &pressure) override
 
bool get_temperature (float &temperature) override
 
- Public Member Functions inherited from AP_Airspeed_Backend
 AP_Airspeed_Backend (AP_Airspeed &frontend, uint8_t instance)
 
virtual ~AP_Airspeed_Backend ()
 

Private Attributes

AP_HAL::AnalogSource_source
 

Additional Inherited Members

- Protected Member Functions inherited from AP_Airspeed_Backend
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 inherited from AP_Airspeed_Backend
AP_HAL::Semaphoresem
 

Detailed Description

Definition at line 8 of file AP_Airspeed_analog.h.

Constructor & Destructor Documentation

◆ AP_Airspeed_Analog()

AP_Airspeed_Analog::AP_Airspeed_Analog ( AP_Airspeed frontend,
uint8_t  _instance 
)

Definition at line 30 of file AP_Airspeed_analog.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ get_differential_pressure()

bool AP_Airspeed_Analog::get_differential_pressure ( float &  pressure)
overridevirtual

Implements AP_Airspeed_Backend.

Definition at line 42 of file AP_Airspeed_analog.cpp.

Here is the call graph for this function:

◆ get_temperature()

bool AP_Airspeed_Analog::get_temperature ( float &  temperature)
inlineoverridevirtual

Implements AP_Airspeed_Backend.

Definition at line 20 of file AP_Airspeed_analog.h.

◆ init()

bool AP_Airspeed_Analog::init ( void  )
overridevirtual

Implements AP_Airspeed_Backend.

Definition at line 36 of file AP_Airspeed_analog.cpp.

Member Data Documentation

◆ _source

AP_HAL::AnalogSource* AP_Airspeed_Analog::_source
private

Definition at line 23 of file AP_Airspeed_analog.h.

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


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