Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
aoa_pwm.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2015 Jean-François Erdelyi, Gautier Hattenberger
3 *
4 * This file is part of paparazzi
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20 
29 #ifndef AOA_PWM_H
30 #define AOA_PWM_H
31 
32 #include "std.h"
33 
34 struct Aoa_Pwm {
36  float angle;
37  float offset;
38  float sens;
39 
44  float filter;
45 };
46 
47 extern struct Aoa_Pwm aoa_pwm;
48 
49 extern void aoa_pwm_init(void);
50 extern void aoa_pwm_update(void);
51 
52 #endif /* AOA_PWM_H */
53 
void aoa_pwm_update(void)
Definition: aoa_pwm.c:112
float angle
Angle of attack in radians.
Definition: aoa_pwm.h:36
unsigned long uint32_t
Definition: types.h:18
uint32_t raw
raw PWM value
Definition: aoa_pwm.h:35
float sens
sensitiviy, i.e. scale to conver raw to angle
Definition: aoa_pwm.h:38
void aoa_pwm_init(void)
Definition: aoa_pwm.c:97
struct Aoa_Pwm aoa_pwm
Definition: aoa_pwm.c:85
float filter
Filtering value [0-1] 0: no filtering 1: output is a constant value.
Definition: aoa_pwm.h:44
float offset
Angle of attack offset in radians.
Definition: aoa_pwm.h:37