Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ins_arduimu.c File Reference
#include <stdbool.h>
#include "modules/ins/ins_arduimu.h"
#include "firmwares/fixedwing/main_fbw.h"
#include "mcu_periph/i2c.h"
#include "state.h"
#include "modules/gps/gps.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
+ Include dependency graph for ins_arduimu.c:

Go to the source code of this file.

Macros

#define ARDUIMU_I2C_DEV   i2c0
 
#define ArduIMU_SLAVE_ADDR   0x22
 

Functions

void ArduIMU_init (void)
 
void ArduIMU_periodicGPS (void)
 
void ArduIMU_periodic (void)
 
void IMU_Daten_verarbeiten (void)
 

Variables

int32_t GPS_Data [14]
 
struct i2c_transaction ardu_gps_trans
 
struct i2c_transaction ardu_ins_trans
 
static int16_t recievedData [NB_DATA]
 
float ArduIMU_data [NB_DATA]
 ArduIMU simulation. More...
 
int8_t messageNr
 
int8_t imu_daten_angefordert
 
int8_t gps_daten_abgespeichert
 
int8_t gps_daten_versendet_msg1
 
int8_t gps_daten_versendet_msg2
 
float ins_roll_neutral
 
float ins_pitch_neutral
 
float throttle_slew
 

Macro Definition Documentation

◆ ARDUIMU_I2C_DEV

#define ARDUIMU_I2C_DEV   i2c0

Definition at line 24 of file ins_arduimu.c.

◆ ArduIMU_SLAVE_ADDR

#define ArduIMU_SLAVE_ADDR   0x22

Definition at line 30 of file ins_arduimu.c.

Function Documentation

◆ ArduIMU_init()

◆ ArduIMU_periodic()

void ArduIMU_periodic ( void  )

Definition at line 166 of file ins_arduimu.c.

References ardu_ins_trans, ARDUIMU_I2C_DEV, ArduIMU_SLAVE_ADDR, i2c_receive(), imu_daten_angefordert, IMU_Daten_verarbeiten(), and TRUE.

+ Here is the call graph for this function:

◆ ArduIMU_periodicGPS()

◆ IMU_Daten_verarbeiten()

Variable Documentation

◆ ardu_gps_trans

struct i2c_transaction ardu_gps_trans

Definition at line 21 of file ins_arduimu.c.

Referenced by ArduIMU_init(), and ArduIMU_periodicGPS().

◆ ardu_ins_trans

struct i2c_transaction ardu_ins_trans

Definition at line 21 of file ins_arduimu.c.

Referenced by ArduIMU_periodic(), and IMU_Daten_verarbeiten().

◆ ArduIMU_data

float ArduIMU_data[NB_DATA]

ArduIMU simulation.

Sim provides attitude.

Definition at line 41 of file ins_arduimu.c.

◆ GPS_Data

int32_t GPS_Data[14]

Definition at line 21 of file ins_arduimu.c.

Referenced by ArduIMU_periodicGPS().

◆ gps_daten_abgespeichert

int8_t gps_daten_abgespeichert

Definition at line 44 of file ins_arduimu.c.

Referenced by ArduIMU_init(), and ArduIMU_periodicGPS().

◆ gps_daten_versendet_msg1

int8_t gps_daten_versendet_msg1

Definition at line 45 of file ins_arduimu.c.

Referenced by ArduIMU_init(), and ArduIMU_periodicGPS().

◆ gps_daten_versendet_msg2

int8_t gps_daten_versendet_msg2

Definition at line 46 of file ins_arduimu.c.

Referenced by ArduIMU_init(), and ArduIMU_periodicGPS().

◆ imu_daten_angefordert

int8_t imu_daten_angefordert

◆ ins_pitch_neutral

float ins_pitch_neutral

Definition at line 49 of file ins_arduimu.c.

◆ ins_roll_neutral

float ins_roll_neutral

Definition at line 48 of file ins_arduimu.c.

◆ messageNr

int8_t messageNr

Definition at line 42 of file ins_arduimu.c.

Referenced by ArduIMU_init(), and ArduIMU_periodicGPS().

◆ recievedData

int16_t recievedData[NB_DATA]
static

Definition at line 40 of file ins_arduimu.c.

Referenced by IMU_Daten_verarbeiten().

◆ throttle_slew

float throttle_slew

Definition at line 51 of file ins_arduimu.c.