|
Paparazzi UAS v7.1_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). | |
| #define | AOA_FILTER 0.5 |
| Default filter value. | |
| #define | AOA_SENS ((2.0*M_PI)/1024) |
| Default sensitivity (2*pi on a 10 bit ADC). | |
| #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 |
Definition at line 62 of file aoa_adc.c.
Referenced by aoa_adc_init().
| #define AOA_FILTER 0.5 |
Default filter value.
Definition at line 47 of file aoa_adc.c.
Referenced by aoa_adc_init(), and aoa_pwm_init().
| #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.
Referenced by aoa_adc_init(), and aoa_pwm_init().
| #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.
Referenced by aoa_adc_init(), and aoa_pwm_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, AOA_FILTER, AOA_OFFSET, and AOA_SENS.
| void aoa_adc_update | ( | void | ) |
Definition at line 76 of file aoa_adc.c.
References adc_buf_get(), aoa_adc, AOA_ADC_ID, DefaultChannel, DefaultDevice, foo, and stateSetAngleOfAttack_f().
| struct Aoa_Adc aoa_adc |
Definition at line 65 of file aoa_adc.c.
Referenced by aoa_adc_init(), and aoa_adc_update().