|  | Paparazzi UAS v7.0_unstable
    Paparazzi is a free software Unmanned Aircraft System. | 
Read an airspeed or differential pressure sensor via onboard ADC. More...
#include "modules/sensors/airspeed_adc.h"#include "mcu_periph/adc.h"#include <BOARD_CONFIG>#include "generated/airframe.h"#include "state.h"#include "modules/core/abi.h" Include dependency graph for airspeed_adc.c:
 Include dependency graph for airspeed_adc.c:Go to the source code of this file.
| Macros | |
| #define | USE_AIRSPEED_ADC TRUE | 
| #define | ADC_CHANNEL_AIRSPEED_NB_SAMPLES DEFAULT_AV_NB_SAMPLE | 
| Functions | |
| void | airspeed_adc_init (void) | 
| void | airspeed_adc_update (void) | 
| Variables | |
| struct AirspeedAdc | airspeed_adc | 
| static struct adc_buf | buf_airspeed | 
Read an airspeed or differential pressure sensor via onboard ADC.
Definition in file airspeed_adc.c.
| #define ADC_CHANNEL_AIRSPEED_NB_SAMPLES DEFAULT_AV_NB_SAMPLE | 
Definition at line 51 of file airspeed_adc.c.
Definition at line 34 of file airspeed_adc.c.
Definition at line 58 of file airspeed_adc.c.
References adc_buf_channel(), ADC_CHANNEL_AIRSPEED_NB_SAMPLES, AirspeedAdc::airspeed, airspeed_adc, buf_airspeed, foo, AirspeedAdc::offset, and AirspeedAdc::scale.
 Here is the call graph for this function:
 Here is the call graph for this function:Definition at line 73 of file airspeed_adc.c.
References AirspeedAdc::airspeed, airspeed_adc, AIRSPEED_ADC_ID, adc_buf::av_nb_sample, buf_airspeed, foo, AirspeedAdc::offset, AirspeedAdc::scale, stateSetAirspeed_f(), adc_buf::sum, and AirspeedAdc::val.
 Here is the call graph for this function:
 Here is the call graph for this function:| struct AirspeedAdc airspeed_adc | 
Definition at line 42 of file airspeed_adc.c.
Referenced by airspeed_adc_init(), and airspeed_adc_update().
| 
 | static | 
Definition at line 54 of file airspeed_adc.c.
Referenced by airspeed_adc_init(), and airspeed_adc_update().