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

Vectornav VN-200 INS module. More...

#include "modules/gps/gps.h"
#include "modules/ins/ins.h"
#include "peripherals/vn200_serial.h"
#include "math/pprz_algebra.h"
#include "math/pprz_geodetic_int.h"
#include "math/pprz_algebra_float.h"
#include "math/pprz_isa.h"
#include "math/pprz_orientation_conversion.h"
#include "generated/airframe.h"
#include "mcu_periph/sys_time.h"
#include "modules/core/abi.h"
Include dependency graph for ins_vectornav.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  InsVectornav

Macros

#define INS_VN_BODY_TO_IMU_PHI   0
#define INS_VN_BODY_TO_IMU_THETA   0
#define INS_VN_BODY_TO_IMU_PSI   0

Functions

void ins_vectornav_init (void)
 Initialize Vectornav struct.
void ins_vectornav_event (void)
 Event handling for Vectornav.
void ins_vectornav_set_sacc (void)
 Set speed (velocity) uncertainty (NED) speed accuracy in cm/s.
void ins_vectornav_set_pacc (void)
 Find maximum uncertainty (NED) position accuracy in cm.
void ins_vectornav_propagate (void)
 Propagate the received states into the vehicle state machine.
void ins_vectornav_monitor (void)
 Monitors vectornav data rate and changes GPS lock if the data rate is too low.

Variables

struct InsVectornav ins_vn

Detailed Description

Vectornav VN-200 INS module.

Author
Michal Podhradsky micha.nosp@m.l.po.nosp@m.dhrad.nosp@m.sky@.nosp@m.aggie.nosp@m.mail.nosp@m..usu..nosp@m.edu

Definition in file ins_vectornav.h.


Data Structure Documentation

◆ InsVectornav

struct InsVectornav

Definition at line 65 of file ins_vectornav.h.

Collaboration diagram for InsVectornav:
Data Fields
struct Int32Vect3 accel_i
float baro_z z-position calculated from baro in meters (z-down)
struct OrientationReps body_to_imu body_to_imu rotation
struct Int32Rates gyro_i
struct LlaCoor_f lla_pos
struct NedCoor_f ltp_accel_f
struct NedCoor_i ltp_accel_i
struct LtpDef_i ltp_def
bool ltp_initialized
struct NedCoor_i ltp_pos_i
struct NedCoor_i ltp_speed_i
float qfe
struct VNData vn_data Data struct.
struct VNPacket vn_packet Packet struct.
uint16_t vn_rate data frequency
enum VNStatus vn_status VN status.

Macro Definition Documentation

◆ INS_VN_BODY_TO_IMU_PHI

#define INS_VN_BODY_TO_IMU_PHI   0

Definition at line 58 of file ins_vectornav.h.

Referenced by ins_vectornav_init().

◆ INS_VN_BODY_TO_IMU_PSI

#define INS_VN_BODY_TO_IMU_PSI   0

Definition at line 60 of file ins_vectornav.h.

Referenced by ins_vectornav_init().

◆ INS_VN_BODY_TO_IMU_THETA

#define INS_VN_BODY_TO_IMU_THETA   0

Definition at line 59 of file ins_vectornav.h.

Referenced by ins_vectornav_init().

Function Documentation

◆ ins_vectornav_event()

void ins_vectornav_event ( void )
extern

Event handling for Vectornav.

Definition at line 150 of file ins_vectornav.c.

References ins_vectornav_propagate(), ins_vn, vn200_event(), and vn200_read_message().

Here is the call graph for this function:

◆ ins_vectornav_init()

◆ ins_vectornav_monitor()

void ins_vectornav_monitor ( void )
extern

Monitors vectornav data rate and changes GPS lock if the data rate is too low.

Definition at line 116 of file ins_vectornav.c.

References gps, GPS_FIX_NONE, and ins_vn.

◆ ins_vectornav_propagate()

◆ ins_vectornav_set_pacc()

void ins_vectornav_set_pacc ( void )
extern

Find maximum uncertainty (NED) position accuracy in cm.

Definition at line 230 of file ins_vectornav.c.

References gps, and ins_vn.

Referenced by ins_vectornav_propagate().

Here is the caller graph for this function:

◆ ins_vectornav_set_sacc()

void ins_vectornav_set_sacc ( void )
extern

Set speed (velocity) uncertainty (NED) speed accuracy in cm/s.

Definition at line 221 of file ins_vectornav.c.

References gps, and ins_vn.

Referenced by ins_vectornav_propagate().

Here is the caller graph for this function:

Variable Documentation

◆ ins_vn