Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/rotwing_drone/wing_rotation_adc_sensor.h"
#include "generated/airframe.h"
#include "modules/core/abi.h"
#include <stdlib.h>
#include "mcu_periph/adc.h"
Go to the source code of this file.
Macros | |
#define | ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION ADC_5 |
#define | ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION_NB_SAMPLES 16 |
Functions | |
void | wing_rotation_adc_init (void) |
void | wing_rotation_adc_to_deg (void) |
Variables | |
static struct adc_buf | buf_wing_rot_pos |
Definition in file wing_rotation_adc_sensor.c.
#define ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION ADC_5 |
Definition at line 35 of file wing_rotation_adc_sensor.c.
#define ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION_NB_SAMPLES 16 |
Definition at line 39 of file wing_rotation_adc_sensor.c.
void wing_rotation_adc_init | ( | void | ) |
Definition at line 60 of file wing_rotation_adc_sensor.c.
References adc_buf_channel(), ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION, ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION_NB_SAMPLES, and buf_wing_rot_pos.
void wing_rotation_adc_to_deg | ( | void | ) |
Definition at line 67 of file wing_rotation_adc_sensor.c.
References ACT_FEEDBACK_UAVCAN_ID, adc_buf::av_nb_sample, buf_wing_rot_pos, act_feedback_t::idx, act_feedback_t::act_feedback_set_t::position, act_feedback_t::position, act_feedback_t::set, and adc_buf::sum.
|
static |
Definition at line 1 of file wing_rotation_adc_sensor.c.
Referenced by wing_rotation_adc_init(), and wing_rotation_adc_to_deg().