Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
aoa_adc.c File Reference

Angle of Attack sensor on ADC Autor: Bruzzlee. More...

#include "modules/sensors/aoa_adc.h"
#include "generated/airframe.h"
#include "modules/core/abi.h"
#include "state.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
+ Include dependency graph for aoa_adc.c:

Go to the source code of this file.

Macros

#define AOA_OFFSET   M_PI
 Default offset value (assuming 0 AOA is in the middle of the range) More...
 
#define AOA_FILTER   0.5
 Default filter value. More...
 
#define AOA_SENS   ((2.0*M_PI)/1024)
 Default sensitivity (2*pi on a 10 bit ADC) More...
 
#define ADC_CHANNEL_AOA_NB_SAMPLES   DEFAULT_AV_NB_SAMPLE
 

Functions

void aoa_adc_init (void)
 
void aoa_adc_update (void)
 

Variables

struct Aoa_Adc aoa_adc
 

Detailed Description

Angle of Attack sensor on ADC Autor: Bruzzlee.

ex: US DIGITAL MA3-A10-236-N

Definition in file aoa_adc.c.

Macro Definition Documentation

◆ ADC_CHANNEL_AOA_NB_SAMPLES

#define ADC_CHANNEL_AOA_NB_SAMPLES   DEFAULT_AV_NB_SAMPLE

Definition at line 62 of file aoa_adc.c.

◆ AOA_FILTER

#define AOA_FILTER   0.5

Default filter value.

Definition at line 47 of file aoa_adc.c.

◆ AOA_OFFSET

#define AOA_OFFSET   M_PI

Default offset value (assuming 0 AOA is in the middle of the range)

Definition at line 43 of file aoa_adc.c.

◆ AOA_SENS

#define AOA_SENS   ((2.0*M_PI)/1024)

Default sensitivity (2*pi on a 10 bit ADC)

Definition at line 51 of file aoa_adc.c.

Function Documentation

◆ aoa_adc_init()

void aoa_adc_init ( void  )

Definition at line 67 of file aoa_adc.c.

References adc_buf_channel(), ADC_CHANNEL_AOA_NB_SAMPLES, Aoa_Adc::angle, aoa_adc, AOA_FILTER, AOA_OFFSET, AOA_SENS, Aoa_Adc::buf, Aoa_Adc::filter, Aoa_Adc::offset, and Aoa_Adc::sens.

+ Here is the call graph for this function:

◆ aoa_adc_update()

void aoa_adc_update ( void  )

Variable Documentation

◆ aoa_adc

struct Aoa_Adc aoa_adc

Definition at line 1 of file aoa_adc.c.

Referenced by aoa_adc_init(), and aoa_adc_update().