Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_crista.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
22 #include "subsystems/imu.h"
23 
24 volatile bool_t ADS8344_available;
26 
27 void imu_impl_init(void) {
28 
30 
32 
33 #ifdef USE_AMI601
34  ami601_init();
35 #endif
36 #ifdef USE_HMC5843
37  hmc5843_init();
38 #endif
39 
40 }
41 
42 void imu_periodic(void) {
43 
45 #ifdef USE_AMI601
46  RunOnceEvery(10, { ami601_read(); });
47 #endif
48 #ifdef USE_HMC5843
50 #endif
51 }
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:42
#define FALSE
Definition: imu_chimu.h:141
void imu_impl_init(void)
Definition: imu_crista.c:27
void hmc5843_init(void)
Definition: hmc5843.c:16
volatile bool_t ADS8344_available
Definition: imu_crista.c:24
Inertial Measurement Unit interface.
#define ADS8344_NB_CHANNELS
Definition: imu_crista.h:28
void ami601_read(void)
Definition: ami601.c:25
void imu_crista_arch_init(void)
uint16_t ADS8344_values[ADS8344_NB_CHANNELS]
Definition: imu_crista.c:25
void hmc5843_periodic(void)
Definition: hmc5843.c:103