Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_aspirin_i2c.c File Reference
#include "subsystems/imu.h"
#include "subsystems/abi.h"
#include "mcu_periph/i2c.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_impl_init (void)
 must be defined by underlying hardware More...
 
void imu_periodic (void)
 optional. More...
 
void imu_aspirin_i2c_event (void)
 

Variables

struct ImuAspirinI2c imu_aspirin
 

Macro Definition Documentation

#define ASPIRIN_ACCEL_RATE   ADXL345_RATE_50HZ

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

Definition at line 45 of file imu_aspirin_i2c.c.

Referenced by imu_impl_init().

#define ASPIRIN_GYRO_LOWPASS   ITG3200_DLPF_20HZ

gyro internal lowpass frequency

Definition at line 58 of file imu_aspirin_i2c.c.

Referenced by imu_impl_init().

#define ASPIRIN_GYRO_SMPLRT_DIV   19

gyro sample rate divider

Definition at line 71 of file imu_aspirin_i2c.c.

Referenced by imu_impl_init().

#define ASPIRIN_I2C_DEV   i2c2

Definition at line 38 of file imu_aspirin_i2c.c.

Referenced by imu_impl_init().

Function Documentation

void imu_impl_init ( void  )
void imu_periodic ( void  )

optional.

If not provided by implementation, empty function is used

Definition at line 118 of file imu_aspirin_i2c.c.

References ImuAspirinI2c::acc_adxl, adxl345_i2c_periodic(), ImuAspirinI2c::gyro_itg, hmc58xx_periodic(), imu_aspirin, itg3200_periodic(), and ImuAspirinI2c::mag_hmc.

+ Here is the call graph for this function:

Variable Documentation

struct ImuAspirinI2c imu_aspirin

Definition at line 81 of file imu_aspirin_i2c.c.

Referenced by imu_aspirin_i2c_event(), and imu_periodic().