Paparazzi UAS  v5.15_devel-46-gd23ed71
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
aoa_pwm.h File Reference

Angle of Attack sensor on PWM. More...

#include "std.h"
+ Include dependency graph for aoa_pwm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Aoa_Pwm
 

Enumerations

enum  Aoa_Type { SEND_TYPE_AOA, SEND_TYPE_SIDESLIP }
 Selection of sensor type to be send over telemetry. More...
 

Functions

void aoa_pwm_init (void)
 
void aoa_pwm_update (void)
 

Variables

struct Aoa_Pwm aoa_pwm
 
struct Aoa_Pwm ssa_pwm
 
enum Aoa_Type aoa_send_type
 

Detailed Description

Angle of Attack sensor on PWM.

Author
Jean-Fran├žois Erdelyi Driver for a PWM based angle of attack sensor A second sensor can be defined for the sideslip angle It is assumed that both sensors are the same, only sensitivity, offset and direction can differ.

SENSOR, example : US DIGITAL MA3-P12-125-B

Definition in file aoa_pwm.h.


Data Structure Documentation

struct Aoa_Pwm

Definition at line 39 of file aoa_pwm.h.

Data Fields
float angle Angle of attack in radians.
float filter Filtering value [0-1] 0: no filtering 1: output is a constant value.
float offset Angle of attack offset in radians.
uint32_t raw raw PWM value
float sens sensitiviy, i.e. scale to conver raw to angle

Enumeration Type Documentation

enum Aoa_Type

Selection of sensor type to be send over telemetry.

Enumerator
SEND_TYPE_AOA 
SEND_TYPE_SIDESLIP 

Definition at line 57 of file aoa_pwm.h.

Function Documentation

Variable Documentation

struct Aoa_Pwm aoa_pwm

Definition at line 92 of file aoa_pwm.c.

Referenced by aoa_pwm_init(), aoa_pwm_update(), and send_aoa().

enum Aoa_Type aoa_send_type

Definition at line 123 of file aoa_pwm.c.

Referenced by aoa_pwm_init(), and send_aoa().

struct Aoa_Pwm ssa_pwm

Definition at line 119 of file aoa_pwm.c.

Referenced by aoa_pwm_init(), aoa_pwm_update(), and send_aoa().