Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ins_module.h File Reference

Device independent INS code. More...

#include "std.h"
#include "subsystems/ins.h"
#include "pprzlink/pprzlink_device.h"
#include "mcu_periph/uart.h"
#include "mcu_periph/spi.h"
+ Include dependency graph for ins_module.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INS_FORMAT   float
 
#define InsLinkDevice   (&((INS_LINK).device))
 
#define InsSend1(c)   InsLinkDevice->put_byte(InsLinkDevice->periph, 0, c)
 
#define InsUartSend1(c)   InsSend1(c)
 
#define InsSend(_dat, _len)   { for (uint8_t i = 0; i< (_len); i++) InsSend1(_dat[i]); };
 
#define InsUartSetBaudrate(_b)   uart_periph_set_baudrate(INS_LINK, _b)
 

Functions

void handle_ins_msg (void)
 
void parse_ins_msg (void)
 
void parse_ins_buffer (uint8_t)
 
static void ins_event_check_and_handle (void(*handler)(void))
 !SITL More...
 

Variables

INS_FORMAT ins_x
 
INS_FORMAT ins_y
 
INS_FORMAT ins_z
 
INS_FORMAT ins_vx
 
INS_FORMAT ins_vy
 
INS_FORMAT ins_vz
 
INS_FORMAT ins_phi
 
INS_FORMAT ins_theta
 
INS_FORMAT ins_psi
 
INS_FORMAT ins_p
 
INS_FORMAT ins_q
 
INS_FORMAT ins_r
 
INS_FORMAT ins_ax
 
INS_FORMAT ins_ay
 
INS_FORMAT ins_az
 
INS_FORMAT ins_mx
 
INS_FORMAT ins_my
 
INS_FORMAT ins_mz
 
volatile uint8_t ins_msg_received
 
volatile uint8_t new_ins_attitude
 

Detailed Description

Device independent INS code.

Definition in file ins_module.h.

Macro Definition Documentation

#define INS_FORMAT   float

Definition at line 35 of file ins_module.h.

#define InsLinkDevice   (&((INS_LINK).device))

Definition at line 76 of file ins_module.h.

Referenced by ins_event_check_and_handle(), and parse_ins_msg().

#define InsSend (   _dat,
  _len 
)    { for (uint8_t i = 0; i< (_len); i++) InsSend1(_dat[i]); };

Definition at line 84 of file ins_module.h.

Referenced by ahrs_chimu_init(), and ahrs_chimu_update_gps().

#define InsSend1 (   c)    InsLinkDevice->put_byte(InsLinkDevice->periph, 0, c)

Definition at line 82 of file ins_module.h.

Referenced by ahrs_chimu_init().

#define InsUartSend1 (   c)    InsSend1(c)

Definition at line 83 of file ins_module.h.

Referenced by ahrs_chimu_init().

#define InsUartSetBaudrate (   _b)    uart_periph_set_baudrate(INS_LINK, _b)

Definition at line 85 of file ins_module.h.

Function Documentation

void handle_ins_msg ( void  )

Definition at line 154 of file ins_xsens.c.

static void ins_event_check_and_handle ( void(*)(void)  handler)
inlinestatic

!SITL

Definition at line 89 of file ins_module.h.

References dev, ins_msg_received, InsLinkDevice, parse_ins_buffer(), and parse_ins_msg().

+ Here is the call graph for this function:

void parse_ins_buffer ( uint8_t  )

Referenced by ins_event_check_and_handle().

+ Here is the caller graph for this function:

Variable Documentation

INS_FORMAT ins_ax
INS_FORMAT ins_ay
INS_FORMAT ins_az
volatile uint8_t ins_msg_received

Definition at line 64 of file ins_vn100.c.

Referenced by ins_event_check_and_handle().

INS_FORMAT ins_mx
INS_FORMAT ins_my
INS_FORMAT ins_mz
INS_FORMAT ins_p
INS_FORMAT ins_phi
INS_FORMAT ins_psi
INS_FORMAT ins_q
INS_FORMAT ins_r
INS_FORMAT ins_theta
INS_FORMAT ins_vx
INS_FORMAT ins_vy
INS_FORMAT ins_vz
INS_FORMAT ins_x
INS_FORMAT ins_y
INS_FORMAT ins_z
volatile uint8_t new_ins_attitude