Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
imu_aspirin_i2c.c File Reference

Driver for the Aspirin v1.x IMU using I2C for the accelerometer. More...

#include "modules/imu/imu_aspirin_i2c.h"
#include "modules/imu/imu.h"
#include "modules/core/abi.h"
#include "mcu_periph/i2c.h"
#include "generated/modules.h"
#include "mcu_periph/gpio.h"
+ Include dependency graph for imu_aspirin_i2c.c:

Go to the source code of this file.

Macros

#define ASPIRIN_I2C_DEV   i2c2
 
#define ASPIRIN_ACCEL_RATE   ADXL345_RATE_50HZ
 adxl345 accelerometer output rate, lowpass is set to half of rate More...
 
#define ASPIRIN_GYRO_LOWPASS   ITG3200_DLPF_20HZ
 gyro internal lowpass frequency More...
 
#define ASPIRIN_GYRO_SMPLRT_DIV   19
 gyro sample rate divider More...
 

Functions

void imu_aspirin_i2c_init (void)
 
void imu_aspirin_i2c_periodic (void)
 
void imu_aspirin_i2c_event (void)
 

Variables

struct ImuAspirinI2c imu_aspirin
 

Detailed Description

Driver for the Aspirin v1.x IMU using I2C for the accelerometer.

Definition in file imu_aspirin_i2c.c.

Macro Definition Documentation

◆ ASPIRIN_ACCEL_RATE

#define ASPIRIN_ACCEL_RATE   ADXL345_RATE_50HZ

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

Definition at line 47 of file imu_aspirin_i2c.c.

◆ ASPIRIN_GYRO_LOWPASS

#define ASPIRIN_GYRO_LOWPASS   ITG3200_DLPF_20HZ

gyro internal lowpass frequency

Definition at line 60 of file imu_aspirin_i2c.c.

◆ ASPIRIN_GYRO_SMPLRT_DIV

#define ASPIRIN_GYRO_SMPLRT_DIV   19

gyro sample rate divider

Definition at line 73 of file imu_aspirin_i2c.c.

◆ ASPIRIN_I2C_DEV

#define ASPIRIN_I2C_DEV   i2c2

Definition at line 40 of file imu_aspirin_i2c.c.

Function Documentation

◆ imu_aspirin_i2c_event()

◆ imu_aspirin_i2c_init()

◆ imu_aspirin_i2c_periodic()

void imu_aspirin_i2c_periodic ( void  )

Variable Documentation

◆ imu_aspirin

struct ImuAspirinI2c imu_aspirin