Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
aoa_t4.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 The Paparazzi Team
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, write to
18 * the Free Software Foundation, 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 *
21 */
22
34#ifndef AOA_T4_H
35#define AOA_T4_H
36
37#include "std.h"
38
39struct Aoa_T4 {
41 float angle;
42 float offset;
43 float filter;
44};
45
46extern struct Aoa_T4 aoa_t4; // Stores values of angle of attack sensor
47/* To allow for separate filter options an own SSA structure is available */
48extern struct Aoa_T4 ssa_t4; // Stores values of sideslip angle sensor
49
56extern enum Aoa_Type aoa_send_type;
57
58/* Compensation Sensor angle to theta angle */
59extern float aoa_t4_a1;
60extern float aoa_t4_b1;
61extern float aoa_t4_a2;
62extern float aoa_t4_b2;
63
64void aoa_t4_init(void);
65void aoa_t4_update(void);
66void aoa_t4_init_filters(void);
67
68#endif /* AOA_T4_H */
Aoa_Type
Selection of sensor type to be send over telemetry.
Definition aoa_pwm.h:57
void aoa_t4_update(void)
Definition aoa_t4.c:329
float aoa_t4_a2
Definition aoa_t4.c:154
float aoa_t4_b2
Definition aoa_t4.c:155
struct Aoa_T4 ssa_t4
Definition aoa_t4.c:145
float angle
Angle of attack in radians after applying direction and offset.
Definition aoa_t4.h:41
float aoa_t4_b1
Definition aoa_t4.c:153
@ SEND_TYPE_SIDESLIP
Definition aoa_t4.h:54
@ SEND_TYPE_AOA
Definition aoa_t4.h:53
void aoa_t4_init_filters(void)
Definition aoa_t4.c:287
float filter
Filter level for sensor output, where 0.0 is no filtering and 0.95 for extreme filtering,...
Definition aoa_t4.h:43
struct Aoa_T4 aoa_t4
Definition aoa_t4.c:87
void aoa_t4_init(void)
Definition aoa_t4.c:299
float offset
Angle of attack offset in radians.
Definition aoa_t4.h:42
float aoa_t4_a1
Definition aoa_t4.c:152
enum Aoa_Type aoa_send_type
Definition aoa_pwm.c:123
uint32_t raw
Measurement in degrees times 100 from the sensor before applying direction and offset and unit scale ...
Definition aoa_t4.h:40
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.