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_hbmini.c File Reference

Driver for the IMU on the Hbmini board. More...

#include <math.h>
#include "imu_hbmini.h"
#include "mcu_periph/i2c.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for imu_hbmini.c:

Go to the source code of this file.

Macros

#define IMU_GYRO_P_CHAN   3
 
#define IMU_GYRO_Q_CHAN   4
 
#define IMU_GYRO_R_CHAN   5
 
#define IMU_ACCEL_X_CHAN   0
 
#define IMU_ACCEL_Y_CHAN   1
 
#define IMU_ACCEL_Z_CHAN   2
 
#define IMU_MAG_X_CHAN   2
 
#define IMU_MAG_Y_CHAN   0
 
#define IMU_MAG_Z_CHAN   1
 

Functions

void imu_impl_init (void)
 
void imu_periodic (void)
 
void imu_hbmini_downlink_raw (void)
 
void imu_hbmini_event (void)
 

Variables

struct ImuHbmini imu_hbmini
 

Detailed Description

Driver for the IMU on the Hbmini board.

  • Gyroscope: IDG 500 and ISZ 500, MAX1168
  • Accelerometer: Analog Devices ADXL320
  • Magnetometer: Honeywell HMC5883L

Definition in file imu_hbmini.c.

Macro Definition Documentation

#define IMU_ACCEL_X_CHAN   0

Definition at line 50 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), and ImuEvent().

#define IMU_ACCEL_Y_CHAN   1

Definition at line 51 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), and ImuEvent().

#define IMU_ACCEL_Z_CHAN   2

Definition at line 52 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), and ImuEvent().

#define IMU_GYRO_P_CHAN   3

Definition at line 45 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), and ImuEvent().

#define IMU_GYRO_Q_CHAN   4

Definition at line 46 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), and ImuEvent().

#define IMU_GYRO_R_CHAN   5

Definition at line 47 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), and ImuEvent().

#define IMU_MAG_X_CHAN   2

Definition at line 55 of file imu_hbmini.c.

Referenced by imu_hbmini_event().

#define IMU_MAG_Y_CHAN   0

Definition at line 56 of file imu_hbmini.c.

Referenced by imu_hbmini_event().

#define IMU_MAG_Z_CHAN   1

Definition at line 57 of file imu_hbmini.c.

Referenced by imu_hbmini_event().

Function Documentation

void imu_impl_init ( void  )

Definition at line 62 of file imu_hbmini.c.

References ImuHbmini::acc_valid, FALSE, ImuHbmini::gyr_valid, ImuHbmini::hmc, HMC58XX_ADDR, hmc58xx_init(), imu_hbmini, ImuHbmini::mag_valid, and max1168_init().

+ Here is the call graph for this function:

void imu_periodic ( void  )

Definition at line 77 of file imu_hbmini.c.

References ImuHbmini::hmc, hmc58xx_periodic(), imu_hbmini, and Max1168Periodic.

+ Here is the call graph for this function:

Variable Documentation

struct ImuHbmini imu_hbmini

Definition at line 60 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), imu_impl_init(), imu_periodic(), and ImuEvent().