Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
imu_mpu9250_i2c.c File Reference
#include "subsystems/imu.h"
#include "mcu_periph/i2c.h"
#include "mcu_periph/sys_time.h"
#include "subsystems/abi.h"
+ Include dependency graph for imu_mpu9250_i2c.c:

Go to the source code of this file.

Macros

#define IMU_MPU9250_SMPLRT_DIV   9
 
#define IMU_MPU9250_GYRO_LOWPASS_FILTER   MPU9250_DLPF_GYRO_41HZ
 
#define IMU_MPU9250_ACCEL_LOWPASS_FILTER   MPU9250_DLPF_ACCEL_41HZ
 
#define IMU_MPU9250_I2C_ADDR   MPU9250_ADDR_ALT
 
#define IMU_MPU9250_CHAN_X   0
 
#define IMU_MPU9250_CHAN_Y   1
 
#define IMU_MPU9250_CHAN_Z   2
 
#define IMU_MPU9250_X_SIGN   1
 
#define IMU_MPU9250_Y_SIGN   1
 
#define IMU_MPU9250_Z_SIGN   1
 

Functions

void imu_mpu9250_init (void)
 
void imu_mpu9250_periodic (void)
 
void imu_mpu9250_event (void)
 

Variables

struct ImuMpu9250 imu_mpu9250
 

Detailed Description

IMU driver for the MPU9250 using I2C

Definition in file imu_mpu9250_i2c.c.

Macro Definition Documentation

◆ IMU_MPU9250_ACCEL_LOWPASS_FILTER

#define IMU_MPU9250_ACCEL_LOWPASS_FILTER   MPU9250_DLPF_ACCEL_41HZ

Definition at line 56 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_CHAN_X

#define IMU_MPU9250_CHAN_X   0

Definition at line 74 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_CHAN_Y

#define IMU_MPU9250_CHAN_Y   1

Definition at line 78 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_CHAN_Z

#define IMU_MPU9250_CHAN_Z   2

Definition at line 82 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_GYRO_LOWPASS_FILTER

#define IMU_MPU9250_GYRO_LOWPASS_FILTER   MPU9250_DLPF_GYRO_41HZ

Definition at line 55 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_I2C_ADDR

#define IMU_MPU9250_I2C_ADDR   MPU9250_ADDR_ALT

Definition at line 68 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_SMPLRT_DIV

#define IMU_MPU9250_SMPLRT_DIV   9

Definition at line 54 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_X_SIGN

#define IMU_MPU9250_X_SIGN   1

Definition at line 87 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_Y_SIGN

#define IMU_MPU9250_Y_SIGN   1

Definition at line 91 of file imu_mpu9250_i2c.c.

◆ IMU_MPU9250_Z_SIGN

#define IMU_MPU9250_Z_SIGN   1

Definition at line 95 of file imu_mpu9250_i2c.c.

Function Documentation

◆ imu_mpu9250_event()

◆ imu_mpu9250_init()

◆ imu_mpu9250_periodic()

void imu_mpu9250_periodic ( void  )

Definition at line 114 of file imu_mpu9250_i2c.c.

References imu_mpu9250, ImuMpu9250::mpu, and mpu9250_i2c_periodic().

+ Here is the call graph for this function:

Variable Documentation

◆ imu_mpu9250

struct ImuMpu9250 imu_mpu9250

Definition at line 100 of file imu_mpu9250_i2c.c.

Referenced by imu_mpu9250_event(), imu_mpu9250_init(), and imu_mpu9250_periodic().