Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ins_vn100.h File Reference

Interface for the VectorNav VN100 AHRS use the binary protocal on the SPI link. More...

#include "std.h"
#include "VN100.h"
#include "math/pprz_algebra_float.h"
+ Include dependency graph for ins_vn100.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VN100_ADOR   VN100_ADOR_OFF
 
#define VN100_ADOF   VN100_ADOF_5HZ
 
#define VN100_BAUD   VN100_Baud_57600
 
#define INS_VN100_SET_BAUD   0
 
#define INS_VN100_SET_ADOR   1
 
#define INS_VN100_SET_ADOF   2
 
#define INS_VN100_READY   3
 
#define PERIODIC_SEND_AHRS(_chan, _dev)
 

Functions

void vn100_init (void)
 
void vn100_periodic_task (void)
 
void vn100_event_task (void)
 
void vn100_report_task (void)
 

Variables

float ins_roll_neutral
 
float ins_pitch_neutral
 
float ins_yaw_neutral
 
struct FloatEulers ins_eulers
 
struct FloatQuat ins_quat
 
struct FloatRates ins_rates
 
struct FloatRMat ins_rmat
 
struct FloatVect3 ins_accel
 
struct FloatVect3 ins_mag
 
volatile uint8_t ins_msg_received
 
VN100_Res_Packet last_received_packet
 
VN100_Req_Packet last_send_packet
 
uint32_t ins_ador
 
uint32_t ins_adof
 
uint32_t ins_baud
 
uint8_t ins_init_status
 

Detailed Description

Interface for the VectorNav VN100 AHRS use the binary protocal on the SPI link.

Definition in file ins_vn100.h.

Macro Definition Documentation

◆ INS_VN100_READY

#define INS_VN100_READY   3

Definition at line 81 of file ins_vn100.h.

◆ INS_VN100_SET_ADOF

#define INS_VN100_SET_ADOF   2

Definition at line 80 of file ins_vn100.h.

◆ INS_VN100_SET_ADOR

#define INS_VN100_SET_ADOR   1

Definition at line 79 of file ins_vn100.h.

◆ INS_VN100_SET_BAUD

#define INS_VN100_SET_BAUD   0

Definition at line 78 of file ins_vn100.h.

◆ PERIODIC_SEND_AHRS

#define PERIODIC_SEND_AHRS (   _chan,
  _dev 
)
Value:
DOWNLINK_SEND_AHRS_LKF(_chan, _dev, \
float q
in rad/s
float phi
in radians
float p
in rad/s
float r
in rad/s
float theta
in radians
float psi
in radians
struct FloatVect3 ins_mag
Definition: ins_vn100.c:62
struct FloatVect3 ins_accel
Definition: ins_vn100.c:61
struct FloatEulers ins_eulers
Definition: ins_vn100.c:57
struct FloatRates ins_rates
Definition: ins_vn100.c:59
struct FloatQuat ins_quat
Definition: ins_vn100.c:58

Definition at line 84 of file ins_vn100.h.

◆ VN100_ADOF

#define VN100_ADOF   VN100_ADOF_5HZ

Definition at line 70 of file ins_vn100.h.

◆ VN100_ADOR

#define VN100_ADOR   VN100_ADOR_OFF

Definition at line 67 of file ins_vn100.h.

◆ VN100_BAUD

#define VN100_BAUD   VN100_Baud_57600

Definition at line 73 of file ins_vn100.h.

Function Documentation

◆ vn100_event_task()

◆ vn100_init()

◆ vn100_periodic_task()

◆ vn100_report_task()

Variable Documentation

◆ ins_accel

struct FloatVect3 ins_accel
extern

Definition at line 55 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_report_task().

◆ ins_adof

uint32_t ins_adof
extern

Definition at line 73 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_init().

◆ ins_ador

uint32_t ins_ador
extern

Definition at line 72 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_init().

◆ ins_baud

uint32_t ins_baud
extern

Definition at line 74 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_init().

◆ ins_eulers

struct FloatEulers ins_eulers
extern

Definition at line 55 of file ins_vn100.c.

Referenced by parse_ins_msg(), vn100_event_task(), and vn100_report_task().

◆ ins_init_status

uint8_t ins_init_status
extern

Definition at line 76 of file ins_vn100.c.

Referenced by ins_configure(), and vn100_init().

◆ ins_mag

struct FloatVect3 ins_mag
extern

Definition at line 55 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_report_task().

◆ ins_msg_received

volatile uint8_t ins_msg_received
extern

Definition at line 64 of file ins_vn100.c.

◆ ins_pitch_neutral

float ins_pitch_neutral
extern

Definition at line 15 of file ins_arduimu.c.

◆ ins_quat

struct FloatQuat ins_quat
extern

Definition at line 55 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_report_task().

◆ ins_rates

struct FloatRates ins_rates
extern

Definition at line 55 of file ins_vn100.c.

Referenced by parse_ins_msg(), vn100_event_task(), and vn100_report_task().

◆ ins_rmat

struct FloatRMat ins_rmat
extern

Definition at line 55 of file ins_vn100.c.

◆ ins_roll_neutral

float ins_roll_neutral
extern

Definition at line 14 of file ins_arduimu.c.

◆ ins_yaw_neutral

float ins_yaw_neutral
extern

Definition at line 55 of file ins_vn100.c.

Referenced by vn100_init().

◆ last_received_packet

VN100_Res_Packet last_received_packet
extern

Definition at line 67 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_init().

◆ last_send_packet

VN100_Req_Packet last_send_packet
extern

Definition at line 69 of file ins_vn100.c.

Referenced by ins_configure(), vn100_init(), and vn100_periodic_task().