Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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"
33
#include "
math/pprz_orientation_conversion.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
;
46
struct
OrientationReps
imu_to_mag
;
47
bool
msg_available
;
48
};
49
50
extern
void
mag_pitot_init
(
void
);
51
extern
void
mag_pitot_event
(
void
);
52
53
#endif
54
OrientationReps
Definition:
pprz_orientation_conversion.h:79
mag_pitot_t::transport
struct pprz_transport transport
The transport layer (PPRZ)
Definition:
mag_pitot_uart.h:45
mag_pitot_t::msg_available
bool msg_available
If we received a message.
Definition:
mag_pitot_uart.h:47
mag_pitot_event
void mag_pitot_event(void)
Definition:
mag_pitot_uart.c:128
mag_pitot_t
Definition:
mag_pitot_uart.h:43
mag_pitot_t::imu_to_mag
struct OrientationReps imu_to_mag
IMU to magneto translation.
Definition:
mag_pitot_uart.h:46
mag_pitot_t::device
struct link_device * device
The device which is uses for communication.
Definition:
mag_pitot_uart.h:44
std.h
mag_pitot_init
void mag_pitot_init(void)
Definition:
mag_pitot_uart.c:55
pprz_orientation_conversion.h
sw
airborne
modules
sensors
mag_pitot_uart.h
Generated on Tue Feb 1 2022 13:51:16 for Paparazzi UAS by
1.8.17