Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
ins_ekf2.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Freek van Tienen <freek.v.tienen@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, write to
18 * the Free Software Foundation, 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 */
21
28
29#ifndef INS_EKF2_H
30#define INS_EKF2_H
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#include "modules/ahrs/ahrs.h"
37#include "modules/ins/ins.h"
38
39/* Main EKF2 structure for keeping track of the status and use cross messaging */
63
64extern void ins_ekf2_init(void);
65extern void ins_ekf2_update(void);
68extern struct ekf2_t ekf2;
69extern bool ins_ekf2_events_all;
70
71#ifdef INS_EXT_VISION_ROTATION
72extern struct FloatQuat ins_ext_vision_rot;
73#endif
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* INS_EKF2_H */
Roation quaternion.
angular rates
definition of the local (flat earth) coordinate system
Integrated Navigation System interface.
bool ins_ekf2_events_all
Definition ins_ekf2.cpp:823
struct ekf2_t ekf2
Local EKF2 status structure.
Definition ins_ekf2.cpp:379
float air_density
Air density from the barometer (kg/m^3).
Definition ins_ekf2.h:58
bool accel_valid
If we received a acceleration measurement.
Definition ins_ekf2.h:46
void ins_ekf2_update(void)
bool got_imu_data
If we received valid IMU data (any sensor).
Definition ins_ekf2.h:53
bool gyro_valid
If we received a gyroscope measurement.
Definition ins_ekf2.h:45
uint32_t accel_dt
Accelerometer delta timestamp between abi messages (us).
Definition ins_ekf2.h:44
float mag_scale
Field strength the normalized magnetometer is scaled to without calibration strength (gauss).
Definition ins_ekf2.h:59
uint64_t system_flags_time
Last time the system flags were given to the EKF (us).
Definition ins_ekf2.h:60
uint32_t gyro_dt
Gyroscope delta timestamp between abi messages (us).
Definition ins_ekf2.h:43
void ins_ekf2_init(void)
bool in_air
In-air state last given to the EKF.
Definition ins_ekf2.h:55
struct LtpDef_i ltp_def
Latest LTP definition from the quat_reset_counter EKF2.
Definition ins_ekf2.h:52
uint32_t flow_stamp
Optic flow last abi message timestamp.
Definition ins_ekf2.h:47
bool fixed_wing
Fixed wing flight state last given to the EKF.
Definition ins_ekf2.h:57
float temp
Latest temperature measurement in degrees celcius.
Definition ins_ekf2.h:49
void ins_ekf2_parse_EXTERNAL_POSE(uint8_t *buf)
void ins_ekf2_parse_EXTERNAL_POSE_SMALL(uint8_t *buf)
struct FloatVect3 delta_accel
Last accelerometer measurements.
Definition ins_ekf2.h:42
struct FloatVect3 accel_ned
Latest NED acceleration from the EKF (m/s^2).
Definition ins_ekf2.h:61
uint64_t ltp_stamp
Last LTP change timestamp from the EKF2.
Definition ins_ekf2.h:51
uint8_t quat_reset_counter
Amount of quaternion resets from the EKF2.
Definition ins_ekf2.h:50
struct FloatRates delta_gyro
Last gyroscope measurements.
Definition ins_ekf2.h:41
bool armed
Armed state last given to the EKF.
Definition ins_ekf2.h:56
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned long long uint64_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.