Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
airspeed_consistency.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Noah Wechtler <noahwechtler@tudelft.nl>
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
27#ifndef AIRSPEED_CONSISTENCY_H
28#define AIRSPEED_CONSISTENCY_H
29
30#ifndef AIRSPEED_CONSISTENCY_BUFFER_SIZE
31#define AIRSPEED_CONSISTENCY_BUFFER_SIZE 255
32#endif
33
34#include <std.h>
37
38extern bool asc_reset;
39
53
54extern void airspeed_consistency_init(void);
55extern void airspeed_consistency_periodic(void);
56extern void airspeed_consistency_reset(bool reset); // Reset the airspeed consistency check
57
58#endif // AIRSPEED_CONSISTENCY_H
struct circle_t gs
enum CircFitStatus_t gs_circ_status
float gs_N[AIRSPEED_CONSISTENCY_BUFFER_SIZE]
float gs_E[AIRSPEED_CONSISTENCY_BUFFER_SIZE]
bool asc_reset
void airspeed_consistency_init(void)
void airspeed_consistency_reset(bool reset)
void airspeed_consistency_periodic(void)
float as_E[AIRSPEED_CONSISTENCY_BUFFER_SIZE]
enum CircFitStatus_t as_circ_status
float as_N[AIRSPEED_CONSISTENCY_BUFFER_SIZE]
#define AIRSPEED_CONSISTENCY_BUFFER_SIZE
struct circle_t as
static uint8_t reset[3]
Simple first order low pass filter with bilinear transform.
CircFitStatus_t
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.