Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
imu_gl1.c File Reference
#include "subsystems/imu.h"
#include "subsystems/abi.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_gl1_init (void)
 
void imu_gl1_periodic (void)
 
void imu_gl1_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

◆ GL1_ACCEL_RATE

#define GL1_ACCEL_RATE   ADXL345_RATE_50HZ

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

Definition at line 38 of file imu_gl1.c.

◆ GL1_GYRO_LOWPASS

#define GL1_GYRO_LOWPASS   L3G4200_DLPF_1

gyro internal lowpass frequency

Definition at line 50 of file imu_gl1.c.

◆ GL1_GYRO_SMPLRT

#define GL1_GYRO_SMPLRT   L3G4200_DR_100Hz

gyro sample rate divider

Definition at line 62 of file imu_gl1.c.

◆ L3G4200_SCALE

#define L3G4200_SCALE   L3G4200_SCALE_2000

Definition at line 74 of file imu_gl1.c.

Function Documentation

◆ imu_gl1_event()

◆ imu_gl1_init()

◆ imu_gl1_periodic()

void imu_gl1_periodic ( void  )

Definition at line 107 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

◆ imu_gl1

struct ImuGL1I2c imu_gl1

Definition at line 78 of file imu_gl1.c.

Referenced by imu_gl1_event(), imu_gl1_init(), and imu_gl1_periodic().