Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
imu_mpu6000_hmc5883.h File Reference

Driver for IMU with MPU6000 via SPI and HMC5883 via I2c. More...

#include "std.h"
#include "generated/airframe.h"
#include "modules/imu/imu.h"
#include "peripherals/mpu60x0_spi.h"
#include "peripherals/hmc58xx.h"
+ Include dependency graph for imu_mpu6000_hmc5883.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ImuMpu6000Hmc5883
 

Macros

#define IMU_MPU_GYRO_RANGE   MPU60X0_GYRO_RANGE_2000
 
#define IMU_MPU_ACCEL_RANGE   MPU60X0_ACCEL_RANGE_16G
 

Functions

void imu_mpu_hmc_init (void)
 
void imu_mpu_hmc_periodic (void)
 
void imu_mpu_hmc_event (void)
 

Variables

struct ImuMpu6000Hmc5883 imu_mpu_hmc
 

Detailed Description

Driver for IMU with MPU6000 via SPI and HMC5883 via I2c.

E.g. for Aspirin 2.1

Definition in file imu_mpu6000_hmc5883.h.


Data Structure Documentation

◆ ImuMpu6000Hmc5883

struct ImuMpu6000Hmc5883

Definition at line 46 of file imu_mpu6000_hmc5883.h.

+ Collaboration diagram for ImuMpu6000Hmc5883:
Data Fields
struct Hmc58xx hmc
struct Mpu60x0_Spi mpu

Macro Definition Documentation

◆ IMU_MPU_ACCEL_RANGE

#define IMU_MPU_ACCEL_RANGE   MPU60X0_ACCEL_RANGE_16G

Definition at line 43 of file imu_mpu6000_hmc5883.h.

◆ IMU_MPU_GYRO_RANGE

#define IMU_MPU_GYRO_RANGE   MPU60X0_GYRO_RANGE_2000

Definition at line 39 of file imu_mpu6000_hmc5883.h.

Function Documentation

◆ imu_mpu_hmc_event()

◆ imu_mpu_hmc_init()

◆ imu_mpu_hmc_periodic()

void imu_mpu_hmc_periodic ( void  )

Definition at line 142 of file imu_mpu6000_hmc5883.c.

References ImuMpu6000Hmc5883::hmc, hmc58xx_periodic(), imu_mpu_hmc, ImuMpu6000Hmc5883::mpu, and mpu60x0_spi_periodic().

+ Here is the call graph for this function:

Variable Documentation

◆ imu_mpu_hmc

struct ImuMpu6000Hmc5883 imu_mpu_hmc
extern

Definition at line 1 of file imu_mpu6000_hmc5883.c.

Referenced by imu_mpu_hmc_event(), imu_mpu_hmc_init(), and imu_mpu_hmc_periodic().