Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ins_int.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2012 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 
29 #ifndef INS_INT_H
30 #define INS_INT_H
31 
32 #include "modules/ins/ins.h"
33 #include "modules/gps/gps.h"
34 #include "std.h"
35 #include "math/pprz_geodetic_int.h"
37 
39 struct InsInt {
40  struct LtpDef_i ltp_def;
42 
44 
48  bool hf_realign;
49 
53  bool vf_reset;
54 
55  /* output LTP NED */
56  struct NedCoor_i ltp_pos;
57  struct NedCoor_i ltp_speed;
58  struct NedCoor_i ltp_accel;
59 
60  /* baro */
61  float baro_z;
62  float qfe;
64 };
65 
67 extern struct InsInt ins_int;
68 
69 extern void ins_int_init(void);
70 extern void ins_int_propagate(struct Int32Vect3 *accel, float dt);
71 extern void ins_int_update_gps(struct GpsState *gps_s);
72 
73 #endif /* INS_INT_H */
Device independent GPS code (interface)
data structure for GPS information
Definition: gps.h:85
definition of the local (flat earth) coordinate system
vector in North East Down coordinates
Integrated Navigation System interface.
struct InsInt ins_int
global INS state
Definition: ins_int.c:166
float baro_z
z-position calculated from baro in meters (z-down)
Definition: ins_int.h:61
struct LtpDef_i ltp_def
Definition: ins_int.h:40
bool ltp_initialized
Definition: ins_int.h:41
void ins_int_propagate(struct Int32Vect3 *accel, float dt)
Definition: ins_int.c:296
void ins_int_update_gps(struct GpsState *gps_s)
Definition: ins_int.c:399
bool baro_initialized
Definition: ins_int.h:63
void ins_int_init(void)
Definition: ins_int.c:203
struct NedCoor_i ltp_pos
Definition: ins_int.h:56
bool vf_reset
request to reset vertical filter.
Definition: ins_int.h:53
struct NedCoor_i ltp_speed
Definition: ins_int.h:57
float qfe
Definition: ins_int.h:62
bool hf_realign
request to realign horizontal filter.
Definition: ins_int.h:48
uint32_t propagation_cnt
number of propagation steps since the last measurement update
Definition: ins_int.h:43
struct NedCoor_i ltp_accel
Definition: ins_int.h:58
Ins implementation state (fixed point)
Definition: ins_int.h:39
Paparazzi floating point algebra.
Paparazzi fixed point math for geodetic calculations.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l1_types.h:78