Paparazzi UAS  v5.15_devel-61-g9c6bcf9
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_gl1.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Antoine Drouin <poinix@gmail.com>
3  * 2013 Felix Ruess <felix.ruess@gmail.com>
4  * 2013 Eduardo Lavratti <agressiva@hotmail.com>
5  *
6  * This file is part of paparazzi.
7  *
8  * paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
30 #ifndef IMU_GL1_H
31 #define IMU_GL1_H
32 
33 #include "generated/airframe.h"
34 #include "subsystems/imu.h"
35 
36 /* include default GL1 sensitivity/channel definitions */
38 
39 #include "peripherals/l3g4200.h"
40 #include "peripherals/hmc58xx.h"
42 
43 struct ImuGL1I2c {
45  struct L3g4200 gyro_l3g;
46  struct Hmc58xx mag_hmc;
47 };
48 
49 extern struct ImuGL1I2c imu_gl1;
50 
51 extern void imu_gl1_init(void);
52 extern void imu_gl1_periodic(void);
53 extern void imu_gl1_event(void);
54 
55 #endif /* IMU_GL1_H */
struct L3g4200 gyro_l3g
Definition: imu_gl1.h:45
void imu_gl1_event(void)
Definition: imu_gl1.c:118
void imu_gl1_init(void)
Definition: imu_gl1.c:80
struct Adxl345_I2c acc_adxl
Definition: imu_gl1.h:44
void imu_gl1_periodic(void)
Definition: imu_gl1.c:107
struct Hmc58xx mag_hmc
Definition: imu_gl1.h:46
struct ImuGL1I2c imu_gl1
Definition: imu_gl1.c:78
Default sensitivity definitions for IMU GL1.
Inertial Measurement Unit interface.
Driver for the accelerometer ADXL345 from Analog Devices using I2C.
Driver for the gyro L3G4200 From ST.