Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_gl1.c File Reference

Driver for I2C IMU using L3G4200, ADXL345, HMC5883 and BMP085. More...

#include "subsystems/imu.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for imu_gl1.c:

Go to the source code of this file.

Macros

#define GL1_ACCEL_RATE   ADXL345_RATE_50HZ
 adxl345 accelerometer output rate, lowpass is set to half of rate More...
 
#define GL1_GYRO_LOWPASS   L3G4200_DLPF_1
 gyro internal lowpass frequency More...
 
#define GL1_GYRO_SMPLRT   L3G4200_DR_100Hz
 gyro sample rate divider More...
 
#define L3G4200_SCALE   L3G4200_SCALE_2000
 

Functions

void imu_impl_init (void)
 
void imu_periodic (void)
 
void imu_gl1_i2c_event (void)
 

Variables

struct ImuGL1I2c imu_gl1
 

Detailed Description

Driver for I2C IMU using L3G4200, ADXL345, HMC5883 and BMP085.

Definition in file imu_gl1.c.

Macro Definition Documentation

#define GL1_ACCEL_RATE   ADXL345_RATE_50HZ

adxl345 accelerometer output rate, lowpass is set to half of rate

Definition at line 37 of file imu_gl1.c.

Referenced by imu_impl_init().

#define GL1_GYRO_LOWPASS   L3G4200_DLPF_1

gyro internal lowpass frequency

Definition at line 49 of file imu_gl1.c.

Referenced by imu_impl_init().

#define GL1_GYRO_SMPLRT   L3G4200_DR_100Hz

gyro sample rate divider

Definition at line 61 of file imu_gl1.c.

Referenced by imu_impl_init().

#define L3G4200_SCALE   L3G4200_SCALE_2000

Definition at line 73 of file imu_gl1.c.

Referenced by imu_impl_init().

Function Documentation

void imu_periodic ( void  )

Definition at line 110 of file imu_gl1.c.

References ImuGL1I2c::acc_adxl, adxl345_i2c_periodic(), ImuGL1I2c::gyro_l3g, hmc58xx_periodic(), imu_gl1, l3g4200_periodic(), and ImuGL1I2c::mag_hmc.

+ Here is the call graph for this function:

Variable Documentation

struct ImuGL1I2c imu_gl1

Definition at line 77 of file imu_gl1.c.

Referenced by imu_gl1_i2c_event(), imu_periodic(), and ImuEvent().