Paparazzi UAS  v7.0_unstable
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 "modules/ins/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 */
Integrated Navigation System interface.
float alt_dot
estimated vertical speed in m/s (positive-up)
Definition: ins_alt_float.h:39
bool reset_alt_ref
flag to request reset of altitude reference to current alt
Definition: ins_alt_float.h:41
float alt
estimated altitude above MSL in meters
Definition: ins_alt_float.h:38
bool baro_initialized
Definition: ins_alt_float.h:47
float baro_alt
Definition: ins_alt_float.h:46
bool origin_initialized
TRUE if UTM origin was initialized.
Definition: ins_alt_float.h:42
struct InsAltFloat ins_altf
Definition: ins_alt_float.c:53
void ins_alt_float_init(void)
Definition: ins_alt_float.c:97
void ins_alt_float_update_baro(float pressure)
Ins implementation state (altitude, float)
Definition: ins_alt_float.h:37