Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ins_skeleton.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Felix Ruess <felix.ruess@gmail.com>
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
28#ifndef INS_SKELETON_H
29#define INS_SKELETON_H
30
31#include "std.h"
35
36#include "modules/ins/ins.h"
37#include "modules/gps/gps.h"
38
43
44 /* output LTP NED */
48
50 struct GpsState gps;
51};
52
54extern struct InsModuleInt ins_module;
55
56extern void ins_module_wrapper_init(void);
57
58/* these functions can/should be implemented in your module */
59extern void ins_module_init(void);
60extern void ins_module_propagate(struct Int32Vect3 *accel, float dt);
61extern void ins_module_update_gps(struct GpsState *gps_s, float dt);
62extern void ins_module_update_baro(float pressure);
63extern void ins_module_reset_local_origin(void);
64
65#endif /* INS_SKELETON_H */
Device independent GPS code (interface)
data structure for GPS information
Definition gps.h:87
definition of the local (flat earth) coordinate system
vector in North East Down coordinates
Integrated Navigation System interface.
void ins_module_update_gps(struct GpsState *gps_s, float dt)
void ins_module_wrapper_init(void)
struct NedCoor_i ltp_speed
velocity in m/s in BFP with INT32_SPEED_FRAC
struct NedCoor_i ltp_pos
position in m in BFP with INT32_POS_FRAC
struct LtpDef_i ltp_def
void ins_module_reset_local_origin(void)
void ins_module_update_baro(float pressure)
void ins_module_init(void)
struct GpsState gps
internal copy of last GPS message
struct NedCoor_i ltp_accel
struct InsModuleInt ins_module
global INS state
bool ltp_initialized
void ins_module_propagate(struct Int32Vect3 *accel, float dt)
Ins implementation state (fixed point)
uint16_t foo
Definition main_demo5.c:58
Paparazzi fixed point algebra.
Paparazzi fixed point math for geodetic calculations.
Generic orientation representation and conversions.