Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mag_pitot_uart.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) C. De Wagter
3  * Copyright (C) 2015 Freek van Tienen <freek.v.tienen@gmail.com>
4  *
5  * This file is part of paparazzi
6  *
7  * paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, see
19  * <http://www.gnu.org/licenses/>.
20  */
27 #ifndef MAG_PITOT_UART_H
28 #define MAG_PITOT_UART_H
29 
30 #include "std.h"
31 #include "generated/airframe.h"
32 #include "pprzlink/pprz_transport.h"
34 
35 /* Set default rotation to 0 */
36 #if !defined IMU_TO_MAG_PHI && !defined IMU_TO_MAG_THETA && !defined IMU_TO_MAG_PSI
37 #define IMU_TO_MAG_PHI 0
38 #define IMU_TO_MAG_THETA 0
39 #define IMU_TO_MAG_PSI 0
40 #endif
41 
42 /* Main magneto pitot strcuture */
43 struct mag_pitot_t {
44  struct link_device *device;
45  struct pprz_transport transport;
48 };
49 
50 extern void mag_pitot_init(void);
51 extern void mag_pitot_event(void);
52 
53 #endif
54 
struct OrientationReps imu_to_mag
IMU to magneto translation.
bool msg_available
If we received a message.
struct pprz_transport transport
The transport layer (PPRZ)
void mag_pitot_event(void)
void mag_pitot_init(void)
Generic orientation representation and conversions.
struct link_device * device
The device which is uses for communication.