Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
imu_nps.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Felix Ruess <felix.ruess@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 #ifndef IMU_NPS_H
23 #define IMU_NPS_H
24 
25 #include "modules/imu/imu.h"
26 
27 #include "generated/airframe.h"
28 
29 struct ImuNps {
33 
34  struct Int32Rates gyro;
35  struct Int32Vect3 accel;
36  struct Int32Vect3 mag;
37 };
38 
39 extern struct ImuNps imu_nps;
40 
41 extern void imu_feed_gyro_accel(void);
42 extern void imu_feed_mag(void);
43 
44 extern void imu_nps_init(void);
45 extern void imu_nps_event(void);
46 
47 #endif /* IMU_NPS_H */
angular rates
Inertial Measurement Unit interface.
void imu_feed_mag(void)
Definition: imu_nps.c:79
void imu_feed_gyro_accel(void)
Definition: imu_nps.c:66
struct Int32Rates gyro
Definition: imu_nps.h:34
void imu_nps_event(void)
Definition: imu_nps.c:87
struct Int32Vect3 accel
Definition: imu_nps.h:35
uint8_t gyro_available
Definition: imu_nps.h:32
struct ImuNps imu_nps
Definition: imu_nps.c:29
struct Int32Vect3 mag
Definition: imu_nps.h:36
uint8_t mag_available
Definition: imu_nps.h:30
void imu_nps_init(void)
Definition: imu_nps.c:31
uint8_t accel_available
Definition: imu_nps.h:31
Definition: imu_nps.h:29
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98