Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces 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 "subsystems/abi.h"
#include "mcu_periph/uart.h"
#include "pprzlink/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_hbmini_init (void)
 
void imu_hbmini_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 51 of file imu_hbmini.c.

Referenced by imu_b2_event(), and imu_hbmini_event().

#define IMU_ACCEL_Y_CHAN   1

Definition at line 52 of file imu_hbmini.c.

Referenced by imu_b2_event(), and imu_hbmini_event().

#define IMU_ACCEL_Z_CHAN   2

Definition at line 53 of file imu_hbmini.c.

Referenced by imu_b2_event(), and imu_hbmini_event().

#define IMU_GYRO_P_CHAN   3

Definition at line 46 of file imu_hbmini.c.

Referenced by imu_b2_event(), and imu_hbmini_event().

#define IMU_GYRO_Q_CHAN   4

Definition at line 47 of file imu_hbmini.c.

Referenced by imu_b2_event(), and imu_hbmini_event().

#define IMU_GYRO_R_CHAN   5

Definition at line 48 of file imu_hbmini.c.

Referenced by imu_b2_event(), and imu_hbmini_event().

#define IMU_MAG_X_CHAN   2

Definition at line 56 of file imu_hbmini.c.

Referenced by imu_hbmini_event().

#define IMU_MAG_Y_CHAN   0

Definition at line 57 of file imu_hbmini.c.

Referenced by imu_hbmini_event().

#define IMU_MAG_Z_CHAN   1

Definition at line 58 of file imu_hbmini.c.

Referenced by imu_hbmini_event().

Function Documentation

void imu_hbmini_init ( void  )

Definition at line 63 of file imu_hbmini.c.

References ImuHbmini::hmc, HMC58XX_ADDR, hmc58xx_init(), imu_hbmini, and max1168_init().

+ Here is the call graph for this function:

void imu_hbmini_periodic ( void  )

Definition at line 72 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 61 of file imu_hbmini.c.

Referenced by imu_hbmini_event(), imu_hbmini_init(), and imu_hbmini_periodic().