Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ins_alt_float.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2004-2006 Pascal Brisset, Antoine Drouin
3  * Copyright (C) 2012 Gautier Hattenberger
4  *
5  * This file is part of paparazzi.
6  *
7  * paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, write to
19  * the Free Software Foundation, 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
28 #ifndef INS_ALT_FLOAT_H
29 #define INS_ALT_FLOAT_H
30 
31 #include "subsystems/ins.h"
32 
33 #include <inttypes.h>
34 #include "std.h"
35 
37 struct InsAltFloat {
38  float alt;
39  float alt_dot;
40 
43 
44 #if USE_BAROMETER
45  float qfe;
46  float baro_alt;
48 #endif
49 };
50 
51 extern struct InsAltFloat ins_altf;
52 
53 extern void ins_alt_float_init(void);
54 extern void ins_alt_float_update_baro(float pressure);
55 
56 #endif /* INS_ALT_FLOAT_H */
InsAltFloat::reset_alt_ref
bool reset_alt_ref
flag to request reset of altitude reference to current alt
Definition: ins_alt_float.h:41
ins.h
InsAltFloat::qfe
float qfe
Definition: ins_alt_float.h:45
ins_alt_float_init
void ins_alt_float_init(void)
Definition: ins_alt_float.c:101
InsAltFloat::baro_alt
float baro_alt
Definition: ins_alt_float.h:46
InsAltFloat::alt_dot
float alt_dot
estimated vertical speed in m/s (positive-up)
Definition: ins_alt_float.h:39
std.h
InsAltFloat
Ins implementation state (altitude, float)
Definition: ins_alt_float.h:37
InsAltFloat::origin_initialized
bool origin_initialized
TRUE if UTM origin was initialized.
Definition: ins_alt_float.h:42
ins_alt_float_update_baro
void ins_alt_float_update_baro(float pressure)
Definition: ins_alt_float.c:165
InsAltFloat::alt
float alt
estimated altitude above MSL in meters
Definition: ins_alt_float.h:38
ins_altf
struct InsAltFloat ins_altf
Definition: ins_alt_float.c:53
InsAltFloat::baro_initialized
bool baro_initialized
Definition: ins_alt_float.h:47
inttypes.h