Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 
41  bool_t reset_alt_ref;
42 
43 #if USE_BAROMETER
44  float qfe;
45  float baro_alt;
47 #endif
48 };
49 
50 extern struct InsAltFloat ins_altf;
51 
52 extern void ins_alt_float_init(void);
53 extern void ins_alt_float_update_baro(float pressure);
54 
55 #ifndef DefaultInsImpl
56 #define DefaultInsImpl ins_altf
57 #endif
58 extern void ins_altf_register(void);
59 
60 #endif /* INS_ALT_FLOAT_H */
bool_t baro_initialized
Definition: ins_alt_float.h:46
bool_t reset_alt_ref
flag to request reset of altitude reference to current alt
Definition: ins_alt_float.h:41
void ins_alt_float_update_baro(float pressure)
Integrated Navigation System interface.
float alt
estimated altitude above MSL in meters
Definition: ins_alt_float.h:38
struct InsAltFloat ins_altf
Definition: ins_alt_float.c:53
Ins implementation state (altitude, float)
Definition: ins_alt_float.h:37
void ins_altf_register(void)
float baro_alt
Definition: ins_alt_float.h:45
void ins_alt_float_init(void)
Definition: ins_alt_float.c:88
float alt_dot
estimated vertical speed in m/s (positive-up)
Definition: ins_alt_float.h:39