Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Angle of Attack sensor on PWM. More...
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | Aoa_Pwm |
Functions | |
void | aoa_pwm_init (void) |
void | aoa_pwm_update (void) |
Variables | |
struct Aoa_Pwm | aoa_pwm |
Angle of Attack sensor on PWM.
Definition in file aoa_pwm.h.
struct Aoa_Pwm |
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 |
void aoa_pwm_init | ( | void | ) |
Definition at line 97 of file aoa_pwm.c.
References Aoa_Pwm::angle, AOA_FILTER, AOA_OFFSET, aoa_pwm, AOA_SENS, DefaultPeriodic, FALSE, Aoa_Pwm::filter, log_started, Aoa_Pwm::offset, Aoa_Pwm::raw, register_periodic_telemetry(), and Aoa_Pwm::sens.
void aoa_pwm_update | ( | void | ) |
Definition at line 112 of file aoa_pwm.c.
References Aoa_Pwm::angle, Aoa_Adc::angle, aoa_adc, AOA_ANGLE_OFFSET, aoa_pwm, AOA_PWM_OFFSET, AOA_SIGN, DefaultChannel, DefaultDevice, Aoa_Pwm::filter, get_pwm_input_duty_in_usec(), log_started, Aoa_Pwm::offset, Aoa_Pwm::raw, Aoa_Pwm::sens, stateSetAngleOfAttack_f(), and TRUE.
struct Aoa_Pwm aoa_pwm |
Definition at line 85 of file aoa_pwm.c.
Referenced by aoa_pwm_init(), and aoa_pwm_update().