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

Vectornav VN-200 IMU module, to be used with other AHRS/INS algorithms. More...

#include "modules/imu/imu_vectornav.h"
#include "mcu_periph/sys_time.h"
#include "modules/core/abi.h"
#include "generated/airframe.h"
#include "modules/datalink/telemetry.h"
Include dependency graph for imu_vectornav.c:

Go to the source code of this file.

Functions

static void send_vn_info (struct transport_tx *trans, struct link_device *dev)
void imu_vectornav_init (void)
 Init IMU struct and set up ABI messages.
void imu_vectornav_event (void)
 Event function to read and parse data from the serial port.
void imu_vectornav_periodic (void)
 Periodic function checks for the frequency of packets, triggers warning in case the IMU stops sending data and performs initial configuration if needed.
void imu_vectornav_propagate (void)
 Send ABI messages.

Variables

struct ImuVectornav imu_vn

Detailed Description

Vectornav VN-200 IMU module, to be used with other AHRS/INS algorithms.

Definition in file imu_vectornav.c.

Function Documentation

◆ imu_vectornav_event()

void imu_vectornav_event ( void )

Event function to read and parse data from the serial port.

Definition at line 105 of file imu_vectornav.c.

References imu_vectornav_propagate(), imu_vn, vn200_event(), and vn200_read_message().

Here is the call graph for this function:

◆ imu_vectornav_init()

void imu_vectornav_init ( void )

Init IMU struct and set up ABI messages.

Definition at line 76 of file imu_vectornav.c.

References DefaultPeriodic, imu_vn, register_periodic_telemetry(), send_vn_info(), VNMsgSync, and VNNotTracking.

Here is the call graph for this function:

◆ imu_vectornav_periodic()

void imu_vectornav_periodic ( void )

Periodic function checks for the frequency of packets, triggers warning in case the IMU stops sending data and performs initial configuration if needed.

Definition at line 124 of file imu_vectornav.c.

References imu_vn, VNNotTracking, and VNOK.

◆ imu_vectornav_propagate()

void imu_vectornav_propagate ( void )

Send ABI messages.

Definition at line 145 of file imu_vectornav.c.

References IMU_VECTORNAV_ID, and imu_vn.

Referenced by imu_vectornav_event().

Here is the caller graph for this function:

◆ send_vn_info()

void send_vn_info ( struct transport_tx * trans,
struct link_device * dev )
static

Definition at line 46 of file imu_vectornav.c.

References dev, and imu_vn.

Variable Documentation

◆ imu_vn