Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
imu_crista.c
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.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 
24 #include "subsystems/imu.h"
25 
26 volatile bool_t ADS8344_available;
28 
29 void imu_impl_init(void) {
30 
32 
34 
35 #ifdef USE_AMI601
36  ami601_init();
37 #endif
38 #ifdef USE_HMC5843
39  hmc5843_init();
40 #endif
41 
42 }
43 
44 void imu_periodic(void) {
45 
47 #ifdef USE_AMI601
48  RunOnceEvery(10, { ami601_read(); });
49 #endif
50 #ifdef USE_HMC5843
52 #endif
53 }
void ami601_init(void)
Definition: ami601.c:12
unsigned short uint16_t
Definition: types.h:16
#define ImuCristaArchPeriodic()
void imu_periodic(void)
Definition: imu_crista.c:44
#define FALSE
Definition: imu_chimu.h:141
void imu_crista_arch_init(void)
void imu_impl_init(void)
Definition: imu_crista.c:29
void hmc5843_init(void)
Definition: hmc5843.c:16
volatile bool_t ADS8344_available
Definition: imu_crista.c:26
Inertial Measurement Unit interface.
#define ADS8344_NB_CHANNELS
Definition: imu_crista.h:30
void ami601_read(void)
Definition: ami601.c:25
uint16_t ADS8344_values[ADS8344_NB_CHANNELS]
Definition: imu_crista.c:27
void hmc5843_periodic(void)
Definition: hmc5843.c:103