Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_adc.c File Reference
#include "modules/sensors/airspeed_adc.h"
#include "mcu_periph/adc.h"
#include <BOARD_CONFIG>
#include "generated/airframe.h"
#include "state.h"
+ Include dependency graph for airspeed_adc.c:

Go to the source code of this file.

Macros

#define ADC_CHANNEL_AIRSPEED_NB_SAMPLES   DEFAULT_AV_NB_SAMPLE
 

Functions

void airspeed_adc_init (void)
 
void airspeed_adc_update (void)
 

Variables

uint16_t adc_airspeed_val
 
struct adc_buf buf_airspeed
 

Macro Definition Documentation

#define ADC_CHANNEL_AIRSPEED_NB_SAMPLES   DEFAULT_AV_NB_SAMPLE

Definition at line 38 of file airspeed_adc.c.

Referenced by airspeed_adc_init().

Function Documentation

void airspeed_adc_init ( void  )

Definition at line 45 of file airspeed_adc.c.

References adc_buf_channel(), ADC_CHANNEL_AIRSPEED_NB_SAMPLES, and buf_airspeed.

+ Here is the call graph for this function:

void airspeed_adc_update ( void  )

Definition at line 51 of file airspeed_adc.c.

References adc_airspeed_val, adc_buf::av_nb_sample, buf_airspeed, sim_air_speed, stateSetAirspeed_f(), and adc_buf::sum.

+ Here is the call graph for this function:

Variable Documentation

uint16_t adc_airspeed_val

Definition at line 29 of file airspeed_adc.c.

Referenced by airspeed_adc_update().

struct adc_buf buf_airspeed

Definition at line 41 of file airspeed_adc.c.

Referenced by airspeed_adc_init(), and airspeed_adc_update().