Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ins_vn100.c File Reference
#include "modules/ins/ins_vn100.h"
#include "generated/airframe.h"
#include "mcu_periph/spi.h"
#include "state.h"
#include "mcu_periph/uart.h"
#include "modules/datalink/downlink.h"
#include "pprzlink/messages.h"
+ Include dependency graph for ins_vn100.c:

Go to the source code of this file.

Macros

#define INS_YAW_NEUTRAL_DEFAULT   0.
 driver for the VectorNav VN100 More...
 
#define VN100_SPI_DEV   spi1
 
#define VN100_SLAVE_IDX   0
 

Functions

static void parse_ins_msg (void)
 
void vn100_init (void)
 
static bool ins_configure (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
 
struct spi_transaction vn100_trans
 

Macro Definition Documentation

◆ INS_YAW_NEUTRAL_DEFAULT

#define INS_YAW_NEUTRAL_DEFAULT   0.

driver for the VectorNav VN100

Definition at line 39 of file ins_vn100.c.

◆ VN100_SLAVE_IDX

#define VN100_SLAVE_IDX   0

Definition at line 49 of file ins_vn100.c.

◆ VN100_SPI_DEV

#define VN100_SPI_DEV   spi1

Definition at line 44 of file ins_vn100.c.

Function Documentation

◆ ins_configure()

◆ parse_ins_msg()

◆ vn100_event_task()

◆ vn100_init()

◆ vn100_periodic_task()

◆ vn100_report_task()

Variable Documentation

◆ ins_accel

struct FloatVect3 ins_accel

Definition at line 55 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_report_task().

◆ ins_adof

uint32_t ins_adof

Definition at line 73 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_init().

◆ ins_ador

uint32_t ins_ador

Definition at line 72 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_init().

◆ ins_baud

uint32_t ins_baud

Definition at line 74 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_init().

◆ ins_eulers

struct FloatEulers ins_eulers

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

Definition at line 76 of file ins_vn100.c.

Referenced by ins_configure(), and vn100_init().

◆ ins_mag

struct FloatVect3 ins_mag

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

Definition at line 64 of file ins_vn100.c.

Referenced by ins_event_check_and_handle().

◆ ins_pitch_neutral

float ins_pitch_neutral

Definition at line 54 of file ins_vn100.c.

Referenced by vn100_event_task().

◆ ins_quat

struct FloatQuat ins_quat

Definition at line 55 of file ins_vn100.c.

Referenced by parse_ins_msg(), and vn100_report_task().

◆ ins_rates

struct FloatRates ins_rates

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

Definition at line 55 of file ins_vn100.c.

◆ ins_roll_neutral

float ins_roll_neutral

Definition at line 53 of file ins_vn100.c.

Referenced by vn100_event_task().

◆ ins_yaw_neutral

float ins_yaw_neutral

Definition at line 55 of file ins_vn100.c.

Referenced by vn100_init().

◆ last_received_packet

VN100_Res_Packet last_received_packet

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

Definition at line 69 of file ins_vn100.c.

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

◆ vn100_trans

struct spi_transaction vn100_trans

Definition at line 79 of file ins_vn100.c.

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