|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Read an airspeed or differential pressure sensor via onboard ADC. More...
#include <inttypes.h>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 |
Read an airspeed or differential pressure sensor via onboard ADC.
Definition in file airspeed_adc.h.
| 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 | |
| void airspeed_adc_init | ( | void | ) |
Definition at line 60 of file airspeed_adc.c.
References adc_buf_channel(), ADC_CHANNEL_AIRSPEED_NB_SAMPLES, airspeed_adc, and buf_airspeed.
| void airspeed_adc_update | ( | void | ) |
Definition at line 75 of file airspeed_adc.c.
References adc_buf_get(), airspeed_adc, AIRSPEED_ADC_ID, buf_airspeed, and get_sys_time_usec().
|
extern |
Definition at line 44 of file airspeed_adc.c.
Referenced by airspeed_adc_init(), and airspeed_adc_update().