Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
xsens.c File Reference

Parser for the Xsens protocol. More...

#include "xsens.h"
#include "xsens_common.h"
#include "generated/airframe.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for xsens.c:

Go to the source code of this file.

Macros

#define XSENS_OUTPUT_MODE   0x1836
 
#define XSENS_OUTPUT_SETTINGS   0x80000C05
 

Functions

void parse_xsens_buffer (uint8_t c)
 
void xsens_init (void)
 
void xsens_periodic (void)
 
void parse_xsens_msg (void)
 

Variables

uint8_t xsens_errorcode
 
uint8_t xsens_msg_status
 
uint16_t xsens_time_stamp
 
uint16_t xsens_output_mode
 
uint32_t xsens_output_settings
 
float xsens_declination = 0
 
float xsens_gps_arm_x = 0
 
float xsens_gps_arm_y = 0
 
float xsens_gps_arm_z = 0
 
volatile int xsens_configured = 0
 
struct Xsens xsens
 

Detailed Description

Parser for the Xsens protocol.

Definition in file xsens.c.

Macro Definition Documentation

#define XSENS_OUTPUT_MODE   0x1836

Definition at line 64 of file xsens.c.

Referenced by xsens_init().

#define XSENS_OUTPUT_SETTINGS   0x80000C05

Definition at line 93 of file xsens.c.

Referenced by xsens_init().

Function Documentation

void parse_xsens_buffer ( uint8_t  c)

Definition at line 54 of file xsens_common.c.

References ck, GOT_BID, GOT_DATA, GOT_LEN, GOT_MID, GOT_START, TRUE, UNINIT, xsens_id, xsens_len, XSENS_MAX_PAYLOAD, xsens_msg_buf, xsens_msg_idx, xsens_msg_received, and xsens_status.

Referenced by xsens_event().

+ Here is the caller graph for this function:

void xsens_init ( void  )

Definition at line 114 of file xsens.c.

References UNINIT, xsens_configured, xsens_msg_status, XSENS_OUTPUT_MODE, xsens_output_mode, XSENS_OUTPUT_SETTINGS, xsens_output_settings, xsens_status, and xsens_time_stamp.

Referenced by imu_xsens_init(), and ins_xsens_init().

+ Here is the caller graph for this function:

void xsens_periodic ( void  )

Definition at line 125 of file xsens.c.

References xsens_configured, xsens_declination, xsens_output_mode, and xsens_output_settings.

Variable Documentation

struct Xsens xsens
volatile int xsens_configured = 0

Definition at line 108 of file xsens.c.

Referenced by xsens_init(), and xsens_periodic().

float xsens_declination = 0

Definition at line 103 of file xsens.c.

Referenced by parse_xsens_msg(), and xsens_periodic().

uint8_t xsens_errorcode

Definition at line 96 of file xsens.c.

Referenced by parse_xsens_msg().

float xsens_gps_arm_x = 0

Definition at line 104 of file xsens.c.

Referenced by parse_xsens_msg().

float xsens_gps_arm_y = 0

Definition at line 105 of file xsens.c.

Referenced by parse_xsens_msg().

float xsens_gps_arm_z = 0

Definition at line 106 of file xsens.c.

Referenced by parse_xsens_msg().

uint8_t xsens_msg_status

Definition at line 97 of file xsens.c.

Referenced by parse_xsens_msg(), and xsens_init().

uint16_t xsens_output_mode

Definition at line 99 of file xsens.c.

Referenced by parse_xsens_msg(), xsens_init(), and xsens_periodic().

uint32_t xsens_output_settings

Definition at line 100 of file xsens.c.

Referenced by parse_xsens_msg(), xsens_init(), and xsens_periodic().

uint16_t xsens_time_stamp

Definition at line 98 of file xsens.c.

Referenced by xsens_init().