Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
xsens.c File Reference

Parser for the Xsens protocol. More...

#include "xsens.h"
#include "generated/airframe.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/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

◆ XSENS_OUTPUT_MODE

#define XSENS_OUTPUT_MODE   0x1836

Definition at line 63 of file xsens.c.

◆ XSENS_OUTPUT_SETTINGS

#define XSENS_OUTPUT_SETTINGS   0x80000C05

Definition at line 92 of file xsens.c.

Function Documentation

◆ parse_xsens_buffer()

void parse_xsens_buffer ( uint8_t  c)

◆ parse_xsens_msg()

◆ xsens_init()

void xsens_init ( void  )

◆ xsens_periodic()

void xsens_periodic ( void  )

Definition at line 124 of file xsens.c.

References xsens_configured, xsens_declination, xsens_output_mode, and xsens_output_settings.

Variable Documentation

◆ xsens

◆ xsens_configured

volatile int xsens_configured = 0

Definition at line 107 of file xsens.c.

Referenced by xsens_init(), and xsens_periodic().

◆ xsens_declination

float xsens_declination = 0

Definition at line 102 of file xsens.c.

Referenced by parse_xsens_msg(), and xsens_periodic().

◆ xsens_errorcode

uint8_t xsens_errorcode

Definition at line 95 of file xsens.c.

Referenced by parse_xsens_msg().

◆ xsens_gps_arm_x

float xsens_gps_arm_x = 0

Definition at line 103 of file xsens.c.

Referenced by parse_xsens_msg().

◆ xsens_gps_arm_y

float xsens_gps_arm_y = 0

Definition at line 104 of file xsens.c.

Referenced by parse_xsens_msg().

◆ xsens_gps_arm_z

float xsens_gps_arm_z = 0

Definition at line 105 of file xsens.c.

Referenced by parse_xsens_msg().

◆ xsens_msg_status

uint8_t xsens_msg_status

Definition at line 96 of file xsens.c.

Referenced by parse_xsens_msg(), and xsens_init().

◆ xsens_output_mode

uint16_t xsens_output_mode

Definition at line 98 of file xsens.c.

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

◆ xsens_output_settings

uint32_t xsens_output_settings

Definition at line 99 of file xsens.c.

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

◆ xsens_time_stamp

uint16_t xsens_time_stamp

Definition at line 97 of file xsens.c.

Referenced by xsens_init().