Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ Aoa_Pwm

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

◆ Aoa_Type

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

◆ aoa_pwm_init()

◆ aoa_pwm_update()

Variable Documentation

◆ aoa_pwm

struct Aoa_Pwm aoa_pwm
extern

Definition at line 1 of file aoa_pwm.c.

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

◆ aoa_send_type

enum Aoa_Type aoa_send_type
extern

Definition at line 1 of file aoa_pwm.c.

Referenced by aoa_pwm_init(), and send_aoa().

◆ ssa_pwm

struct Aoa_Pwm ssa_pwm
extern

Definition at line 1 of file aoa_pwm.c.

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