Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_adc.h File Reference

Read an airspeed or differential pressure sensor via onboard ADC. More...

#include <inttypes.h>
+ Include dependency graph for airspeed_adc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AirspeedAdc
 

Functions

void airspeed_adc_init (void)
 
void airspeed_adc_update (void)
 

Variables

struct AirspeedAdc airspeed_adc
 

Detailed Description

Read an airspeed or differential pressure sensor via onboard ADC.

Definition in file airspeed_adc.h.


Data Structure Documentation

struct AirspeedAdc

Definition at line 31 of file airspeed_adc.h.

Data Fields
float airspeed
uint16_t offset
float scale used as quadratic scale if AIRSPEED_ADC_QUADRATIC_SCALE, otherwise linear
uint16_t val

Function Documentation

void airspeed_adc_init ( void  )

Definition at line 57 of file airspeed_adc.c.

References adc_buf_channel(), ADC_CHANNEL_AIRSPEED_NB_SAMPLES, AirspeedAdc::airspeed, airspeed_adc, buf_airspeed, AirspeedAdc::offset, and AirspeedAdc::scale.

+ Here is the call graph for this function:

void airspeed_adc_update ( void  )

Variable Documentation

struct AirspeedAdc airspeed_adc

Definition at line 41 of file airspeed_adc.c.

Referenced by airspeed_adc_init(), and airspeed_adc_update().