Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
ins_ekf2.h File Reference

INS based in the EKF2 of PX4. More...

#include "modules/ahrs/ahrs.h"
#include "modules/ins/ins.h"
Include dependency graph for ins_ekf2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ekf2_t

Functions

void ins_ekf2_init (void)
void ins_ekf2_update (void)
void ins_ekf2_parse_EXTERNAL_POSE (uint8_t *buf)
void ins_ekf2_parse_EXTERNAL_POSE_SMALL (uint8_t *buf)

Variables

struct ekf2_t ekf2
 Local EKF2 status structure.
bool ins_ekf2_events_all

Detailed Description

INS based in the EKF2 of PX4.

Definition in file ins_ekf2.h.


Data Structure Documentation

◆ ekf2_t

struct ekf2_t

Definition at line 40 of file ins_ekf2.h.

Collaboration diagram for ekf2_t:
Data Fields
uint32_t accel_dt Accelerometer delta timestamp between abi messages (us).
struct FloatVect3 accel_ned Latest NED acceleration from the EKF (m/s^2).
bool accel_valid If we received a acceleration measurement.
float air_density Air density from the barometer (kg/m^3).
bool armed Armed state last given to the EKF.
struct FloatVect3 delta_accel Last accelerometer measurements.
struct FloatRates delta_gyro Last gyroscope measurements.
bool fixed_wing Fixed wing flight state last given to the EKF.
uint32_t flow_stamp Optic flow last abi message timestamp.
bool got_imu_data If we received valid IMU data (any sensor).
uint32_t gyro_dt Gyroscope delta timestamp between abi messages (us).
bool gyro_valid If we received a gyroscope measurement.
bool in_air In-air state last given to the EKF.
struct LtpDef_i ltp_def Latest LTP definition from the quat_reset_counter EKF2.
uint64_t ltp_stamp Last LTP change timestamp from the EKF2.
float mag_scale Field strength the normalized magnetometer is scaled to without calibration strength (gauss).
uint8_t quat_reset_counter Amount of quaternion resets from the EKF2.
uint64_t system_flags_time Last time the system flags were given to the EKF (us).
float temp Latest temperature measurement in degrees celcius.

Function Documentation

◆ ins_ekf2_init()

◆ ins_ekf2_parse_EXTERNAL_POSE()

void ins_ekf2_parse_EXTERNAL_POSE ( uint8_t * buf)
extern

Definition at line 1543 of file ins_ekf2.cpp.

References ekf, EKF2_IN_EV, ekf2_input_enabled(), ekf2_log, ekf2_time_us(), float_quat_comp(), get_sys_time_usec(), FloatQuat::qi, FloatQuat::qx, FloatQuat::qy, FloatQuat::qz, and sample_ev.

Here is the call graph for this function:

◆ ins_ekf2_parse_EXTERNAL_POSE_SMALL()

void ins_ekf2_parse_EXTERNAL_POSE_SMALL ( uint8_t * buf)
extern

Definition at line 1593 of file ins_ekf2.cpp.

◆ ins_ekf2_update()

Variable Documentation

◆ ekf2

◆ ins_ekf2_events_all

bool ins_ekf2_events_all
extern

Definition at line 823 of file ins_ekf2.cpp.