|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
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"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 | |
| #define | ASPIRIN_GYRO_LOWPASS ITG3200_DLPF_20HZ |
| gyro internal lowpass frequency | |
| #define | ASPIRIN_GYRO_SMPLRT_DIV 19 |
| gyro sample rate divider | |
Functions | |
| void | imu_aspirin_i2c_init (void) |
| void | imu_aspirin_i2c_periodic (void) |
| void | imu_aspirin_i2c_event (void) |
Variables | |
| struct ImuAspirinI2c | imu_aspirin |
Driver for the Aspirin v1.x IMU using I2C for the accelerometer.
Definition in file imu_aspirin_i2c.c.
| #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.
| #define ASPIRIN_GYRO_LOWPASS ITG3200_DLPF_20HZ |
gyro internal lowpass frequency
Definition at line 60 of file imu_aspirin_i2c.c.
| #define ASPIRIN_GYRO_SMPLRT_DIV 19 |
gyro sample rate divider
Definition at line 73 of file imu_aspirin_i2c.c.
| #define ASPIRIN_I2C_DEV i2c2 |
Definition at line 40 of file imu_aspirin_i2c.c.
| void imu_aspirin_i2c_event | ( | void | ) |
Definition at line 143 of file imu_aspirin_i2c.c.
References adxl345_i2c_event(), get_sys_time_usec(), hmc58xx_event(), imu_aspirin, IMU_ASPIRIN_ID, itg3200_event(), VECT3_COPY, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
| void imu_aspirin_i2c_init | ( | void | ) |
Definition at line 85 of file imu_aspirin_i2c.c.
References ADXL345_ADDR, adxl345_i2c_init(), ASPIRIN_ACCEL_RATE, ASPIRIN_GYRO_LOWPASS, ASPIRIN_GYRO_SMPLRT_DIV, ASPIRIN_I2C_DEV, gpio_set(), gpio_setup_output(), HMC58XX_ADDR, hmc58xx_init(), HMC_TYPE_5843, imu_aspirin, imu_aspirin_i2c_init(), IMU_ASPIRIN_ID, imu_set_defaults_accel(), imu_set_defaults_gyro(), ITG3200_ADDR, and itg3200_init().
Referenced by imu_aspirin_i2c_init().
| void imu_aspirin_i2c_periodic | ( | void | ) |
Definition at line 132 of file imu_aspirin_i2c.c.
References adxl345_i2c_periodic(), hmc58xx_periodic(), imu_aspirin, and itg3200_periodic().
| struct ImuAspirinI2c imu_aspirin |
Definition at line 83 of file imu_aspirin_i2c.c.