Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
wing_rotation_adc_sensor.c File Reference
#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"
Include dependency graph for wing_rotation_adc_sensor.c:

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

Detailed Description

Author
Dennis van Wijngaarden D.C.v.nosp@m.anWi.nosp@m.jngaa.nosp@m.rden.nosp@m.@tude.nosp@m.lft..nosp@m.nl Module to read skew angle from adc sensor

Definition in file wing_rotation_adc_sensor.c.

Macro Definition Documentation

◆ ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION

#define ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION   ADC_5

Definition at line 35 of file wing_rotation_adc_sensor.c.

Referenced by wing_rotation_adc_init().

◆ ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION_NB_SAMPLES

#define ADC_CHANNEL_WING_ROTATION_CONTROLLER_POSITION_NB_SAMPLES   16

Definition at line 39 of file wing_rotation_adc_sensor.c.

Referenced by wing_rotation_adc_init().

Function Documentation

◆ wing_rotation_adc_init()

void wing_rotation_adc_init ( void )

◆ wing_rotation_adc_to_deg()

void wing_rotation_adc_to_deg ( void )

Variable Documentation

◆ buf_wing_rot_pos

struct adc_buf buf_wing_rot_pos
static

Definition at line 58 of file wing_rotation_adc_sensor.c.

Referenced by wing_rotation_adc_init(), and wing_rotation_adc_to_deg().