Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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
{
35
uint32_t
raw
;
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
aoa_pwm_update
void aoa_pwm_update(void)
Definition:
aoa_pwm.c:112
Aoa_Pwm
Definition:
aoa_pwm.h:34
Aoa_Pwm::angle
float angle
Angle of attack in radians.
Definition:
aoa_pwm.h:36
uint32_t
unsigned long uint32_t
Definition:
types.h:18
Aoa_Pwm::raw
uint32_t raw
raw PWM value
Definition:
aoa_pwm.h:35
std.h
Aoa_Pwm::sens
float sens
sensitiviy, i.e. scale to conver raw to angle
Definition:
aoa_pwm.h:38
aoa_pwm_init
void aoa_pwm_init(void)
Definition:
aoa_pwm.c:97
aoa_pwm
struct Aoa_Pwm aoa_pwm
Definition:
aoa_pwm.c:85
Aoa_Pwm::filter
float filter
Filtering value [0-1] 0: no filtering 1: output is a constant value.
Definition:
aoa_pwm.h:44
Aoa_Pwm::offset
float offset
Angle of attack offset in radians.
Definition:
aoa_pwm.h:37
sw
airborne
modules
sensors
aoa_pwm.h
Generated on Tue Jun 21 2016 14:01:22 for Paparazzi UAS by
1.8.8