Paparazzi UAS  v6.2.0_stable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_aspirin.c File Reference

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

+ Include dependency graph for imu_aspirin.c:

Go to the source code of this file.

Macros

#define ASPIRIN_SPI_SLAVE_IDX   SPI_SLAVE2
 
#define ASPIRIN_SPI_DEV   spi2
 
#define ASPIRIN_I2C_DEV   i2c2
 
#define ASPIRIN_ACCEL_RATE   ADXL345_RATE_800HZ
 
#define ASPIRIN_GYRO_LOWPASS   ITG3200_DLPF_256HZ
 
#define ASPIRIN_GYRO_SMPLRT_DIV   14
 

Functions

void imu_aspirin_init (void)
 
void imu_aspirin_periodic (void)
 
void imu_aspirin_event (void)
 

Variables

struct ImuAspirin imu_aspirin
 

Detailed Description

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

Definition in file imu_aspirin.c.

Macro Definition Documentation

◆ ASPIRIN_ACCEL_RATE

#define ASPIRIN_ACCEL_RATE   ADXL345_RATE_800HZ

Definition at line 52 of file imu_aspirin.c.

◆ ASPIRIN_GYRO_LOWPASS

#define ASPIRIN_GYRO_LOWPASS   ITG3200_DLPF_256HZ

Definition at line 59 of file imu_aspirin.c.

◆ ASPIRIN_GYRO_SMPLRT_DIV

#define ASPIRIN_GYRO_SMPLRT_DIV   14

Definition at line 60 of file imu_aspirin.c.

◆ ASPIRIN_I2C_DEV

#define ASPIRIN_I2C_DEV   i2c2

Definition at line 47 of file imu_aspirin.c.

◆ ASPIRIN_SPI_DEV

#define ASPIRIN_SPI_DEV   spi2

Definition at line 42 of file imu_aspirin.c.

◆ ASPIRIN_SPI_SLAVE_IDX

#define ASPIRIN_SPI_SLAVE_IDX   SPI_SLAVE2

Definition at line 37 of file imu_aspirin.c.

Function Documentation

◆ imu_aspirin_event()

◆ imu_aspirin_init()

◆ imu_aspirin_periodic()

void imu_aspirin_periodic ( void  )

Definition at line 125 of file imu_aspirin.c.

References ImuAspirin::acc_adxl, adxl345_spi_periodic(), ImuAspirin::gyro_itg, hmc58xx_periodic(), imu_aspirin, itg3200_periodic(), and ImuAspirin::mag_hmc.

+ Here is the call graph for this function:

Variable Documentation

◆ imu_aspirin

struct ImuAspirin imu_aspirin