Paparazzi UAS  v5.15_devel-105-g9de12e2
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 "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 63 of file xsens.c.

Referenced by xsens_init().

#define XSENS_OUTPUT_SETTINGS   0x80000C05

Definition at line 92 of file xsens.c.

Referenced by xsens_init().

Function Documentation

void parse_xsens_buffer ( uint8_t  c)
void xsens_init ( void  )
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

volatile int xsens_configured = 0

Definition at line 107 of file xsens.c.

Referenced by xsens_init(), and xsens_periodic().

float xsens_declination = 0

Definition at line 102 of file xsens.c.

Referenced by parse_xsens_msg(), and xsens_periodic().

uint8_t xsens_errorcode

Definition at line 95 of file xsens.c.

Referenced by parse_xsens_msg().

float xsens_gps_arm_x = 0

Definition at line 103 of file xsens.c.

Referenced by parse_xsens_msg().

float xsens_gps_arm_y = 0

Definition at line 104 of file xsens.c.

Referenced by parse_xsens_msg().

float xsens_gps_arm_z = 0

Definition at line 105 of file xsens.c.

Referenced by parse_xsens_msg().

uint8_t xsens_msg_status

Definition at line 96 of file xsens.c.

Referenced by parse_xsens_msg(), and xsens_init().

uint16_t xsens_output_mode

Definition at line 98 of file xsens.c.

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

uint32_t xsens_output_settings

Definition at line 99 of file xsens.c.

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

uint16_t xsens_time_stamp

Definition at line 97 of file xsens.c.

Referenced by xsens_init().