Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_px4fmu.h File Reference

Driver for the PX4FMU SPI1 for the MPU6000 and I2C2 for the HMC5883. More...

#include "std.h"
#include "generated/airframe.h"
#include "subsystems/imu.h"
#include "subsystems/imu/imu_mpu60x0_defaults.h"
#include "peripherals/mpu60x0_spi.h"
#include "peripherals/hmc58xx.h"
+ Include dependency graph for imu_px4fmu.h:

Go to the source code of this file.

Data Structures

struct  ImuPx4fmu
 

Macros

#define IMU_GYRO_P_SIGN   1
 
#define IMU_GYRO_Q_SIGN   1
 
#define IMU_GYRO_R_SIGN   1
 
#define IMU_ACCEL_X_SIGN   1
 
#define IMU_ACCEL_Y_SIGN   1
 
#define IMU_ACCEL_Z_SIGN   1
 
#define IMU_MAG_X_SIGN   1
 
#define IMU_MAG_Y_SIGN   1
 
#define IMU_MAG_Z_SIGN   1
 

Functions

void imu_px4fmu_event (void)
 
static void ImuEvent (void(*_gyro_handler)(void), void(*_accel_handler)(void), void(*_mag_handler)(void))
 

Variables

struct ImuPx4fmu imu_px4fmu
 

Detailed Description

Driver for the PX4FMU SPI1 for the MPU6000 and I2C2 for the HMC5883.

Definition in file imu_px4fmu.h.

Macro Definition Documentation

#define IMU_ACCEL_X_SIGN   1

Definition at line 44 of file imu_px4fmu.h.

#define IMU_ACCEL_Y_SIGN   1

Definition at line 45 of file imu_px4fmu.h.

#define IMU_ACCEL_Z_SIGN   1

Definition at line 46 of file imu_px4fmu.h.

#define IMU_GYRO_P_SIGN   1

Definition at line 39 of file imu_px4fmu.h.

#define IMU_GYRO_Q_SIGN   1

Definition at line 40 of file imu_px4fmu.h.

#define IMU_GYRO_R_SIGN   1

Definition at line 41 of file imu_px4fmu.h.

#define IMU_MAG_X_SIGN   1

Definition at line 49 of file imu_px4fmu.h.

#define IMU_MAG_Y_SIGN   1

Definition at line 50 of file imu_px4fmu.h.

#define IMU_MAG_Z_SIGN   1

Definition at line 51 of file imu_px4fmu.h.

Function Documentation

static void ImuEvent ( void(*)(void)  _gyro_handler,
void(*)(void)  _accel_handler,
void(*)(void)  _mag_handler 
)
inlinestatic

Definition at line 67 of file imu_px4fmu.h.

References ImuPx4fmu::accel_valid, FALSE, ImuPx4fmu::gyro_valid, imu_px4fmu, imu_px4fmu_event(), and ImuPx4fmu::mag_valid.

+ Here is the call graph for this function:

Variable Documentation

struct ImuPx4fmu imu_px4fmu

Definition at line 66 of file imu_px4fmu.c.

Referenced by imu_periodic(), imu_px4fmu_event(), and ImuEvent().