Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
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"
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 |
Angle of Attack sensor on ADC Autor: Bruzzlee.
ex: US DIGITAL MA3-A10-236-N
Definition in file aoa_adc.c.
#define ADC_CHANNEL_AOA_NB_SAMPLES DEFAULT_AV_NB_SAMPLE |
#define AOA_OFFSET M_PI |
#define AOA_SENS ((2.0*M_PI)/1024) |
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.
void aoa_adc_update | ( | void | ) |
Definition at line 76 of file aoa_adc.c.
References Aoa_Adc::angle, aoa_adc, AOA_ADC_ID, adc_buf::av_nb_sample, Aoa_Adc::buf, DefaultChannel, DefaultDevice, Aoa_Adc::filter, foo, Aoa_Adc::offset, Aoa_Adc::raw, Aoa_Adc::sens, stateSetAngleOfAttack_f(), and adc_buf::sum.
struct Aoa_Adc aoa_adc |
Definition at line 1 of file aoa_adc.c.
Referenced by aoa_adc_init(), and aoa_adc_update().