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

MPU-60X0 driver common functions (I2C and SPI). More...

+ Include dependency graph for mpu60x0.c:

Go to the source code of this file.

Functions

void mpu60x0_set_default_config (struct Mpu60x0Config *c)
 
void mpu60x0_send_config (Mpu60x0ConfigSet mpu_set, void *mpu, struct Mpu60x0Config *config)
 Configuration sequence called once before normal use. More...
 

Variables

const float MPU60X0_GYRO_SENS [4]
 
const struct Int32Rates MPU60X0_GYRO_SENS_FRAC [4][2]
 
const float MPU60X0_ACCEL_SENS [4]
 
const struct Int32Vect3 MPU60X0_ACCEL_SENS_FRAC [4][2]
 

Detailed Description

MPU-60X0 driver common functions (I2C and SPI).

Still needs the either I2C or SPI specific implementation.

Definition in file mpu60x0.c.

Function Documentation

◆ mpu60x0_send_config()

◆ mpu60x0_set_default_config()

Variable Documentation

◆ MPU60X0_ACCEL_SENS

const float MPU60X0_ACCEL_SENS[4]
Initial value:
= {
}
#define MPU60X0_ACCEL_SENS_16G
Definition: mpu60x0.h:93
#define MPU60X0_ACCEL_SENS_8G
Definition: mpu60x0.h:90
#define MPU60X0_ACCEL_SENS_2G
default accel sensitivy from the datasheet sens = 9.81 [m/s^2] / [LSB/g] * 2^INT32_ACCEL_FRAC ex: MPU...
Definition: mpu60x0.h:84
#define MPU60X0_ACCEL_SENS_4G
Definition: mpu60x0.h:87

Definition at line 49 of file mpu60x0.c.

◆ MPU60X0_ACCEL_SENS_FRAC

const struct Int32Vect3 MPU60X0_ACCEL_SENS_FRAC[4][2]
Initial value:

Definition at line 49 of file mpu60x0.c.

Referenced by imu_apogee_init(), imu_aspirin2_init(), imu_bebop_init(), imu_cube_init(), imu_disco_init(), imu_mpu_hmc_init(), imu_mpu_i2c_init(), imu_mpu_spi_init(), and imu_px4fmu_init().

◆ MPU60X0_GYRO_SENS

const float MPU60X0_GYRO_SENS[4]
Initial value:
= {
}
#define MPU60X0_GYRO_SENS_2000
Definition: mpu60x0.h:70
#define MPU60X0_GYRO_SENS_250
default gyro sensitivy from the datasheet sens = 1/ [LSB/(deg/s)] * pi/180 * 2^INT32_RATE_FRAC ex: MP...
Definition: mpu60x0.h:61
#define MPU60X0_GYRO_SENS_500
Definition: mpu60x0.h:64
#define MPU60X0_GYRO_SENS_1000
Definition: mpu60x0.h:67

Definition at line 31 of file mpu60x0.c.

◆ MPU60X0_GYRO_SENS_FRAC

const struct Int32Rates MPU60X0_GYRO_SENS_FRAC[4][2]
Initial value:

Definition at line 31 of file mpu60x0.c.

Referenced by imu_apogee_init(), imu_aspirin2_init(), imu_bebop_init(), imu_cube_init(), imu_disco_init(), imu_mpu_hmc_init(), imu_mpu_i2c_init(), imu_mpu_spi_init(), and imu_px4fmu_init().