Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "subsystems/imu.h"
#include "subsystems/abi.h"
#include "mcu_periph/i2c.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 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 |
#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.
#define ASPIRIN_GYRO_LOWPASS ITG3200_DLPF_20HZ |
gyro internal lowpass frequency
Definition at line 58 of file imu_aspirin_i2c.c.
#define ASPIRIN_GYRO_SMPLRT_DIV 19 |
gyro sample rate divider
Definition at line 71 of file imu_aspirin_i2c.c.
#define ASPIRIN_I2C_DEV i2c2 |
Definition at line 38 of file imu_aspirin_i2c.c.
void imu_aspirin_i2c_event | ( | void | ) |
Definition at line 129 of file imu_aspirin_i2c.c.
References ImuAspirinI2c::acc_adxl, Imu::accel, Imu::accel_unscaled, adxl345_i2c_event(), Adxl345_I2c::data, Hmc58xx::data, Itg3200::data, Adxl345_I2c::data_available, Hmc58xx::data_available, Itg3200::data_available, get_sys_time_usec(), Imu::gyro, ImuAspirinI2c::gyro_itg, Imu::gyro_unscaled, hmc58xx_event(), imu, imu_aspirin, IMU_ASPIRIN_ID, imu_scale_accel(), imu_scale_gyro(), imu_scale_mag(), itg3200_event(), Imu::mag, ImuAspirinI2c::mag_hmc, Imu::mag_unscaled, RATES_COPY, VECT3_COPY, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
void imu_aspirin_i2c_init | ( | void | ) |
Definition at line 83 of file imu_aspirin_i2c.c.
References ImuAspirinI2c::acc_adxl, ADXL345_ADDR, adxl345_i2c_init(), ASPIRIN_ACCEL_RATE, ASPIRIN_GYRO_LOWPASS, ASPIRIN_GYRO_SMPLRT_DIV, ASPIRIN_I2C_DEV, Adxl345_I2c::config, Itg3200::config, Itg3200Config::dlpf_cfg, gpio_set(), gpio_setup_output(), ImuAspirinI2c::gyro_itg, HMC58XX_ADDR, hmc58xx_init(), HMC_TYPE_5843, imu_aspirin, ITG3200_ADDR, itg3200_init(), ImuAspirinI2c::mag_hmc, Adxl345Config::rate, Itg3200Config::smplrt_div, and Hmc58xx::type.
void imu_aspirin_i2c_periodic | ( | void | ) |
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.
struct ImuAspirinI2c imu_aspirin |
Definition at line 81 of file imu_aspirin_i2c.c.
Referenced by imu_aspirin_i2c_event(), imu_aspirin_i2c_init(), and imu_aspirin_i2c_periodic().