Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
logger_uart.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015 The Paparazzi Team
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
23
#ifndef LOGGER_UART_H_
24
#define LOGGER_UART_H_
25
26
#include "
std.h
"
27
28
extern
void
logger_uart_init
(
void
);
29
extern
void
logger_uart_periodic
(
void
);
30
31
#define PACKED __attribute__((__packed__))
32
33
//union {
34
struct
PACKED
logger_uart_data_struct
{
35
uint16_t
start
;
36
int16_t
id
;
// 1
37
int16_t
gyro_p
;
// 2
38
int16_t
gyro_q
;
39
int16_t
gyro_r
;
40
int16_t
acc_x
;
// 5
41
int16_t
acc_y
;
42
int16_t
acc_z
;
43
int16_t
phi
;
// 11
44
int16_t
theta
;
45
int16_t
psi
;
46
uint8_t
crc
;
47
};
48
// uint8_t bytes[23];
49
//} logger_uart_data_union;
50
51
#endif
/* LOGGER_UART_H_ */
logger_uart_data_struct::crc
uint8_t crc
Definition:
logger_uart.h:46
logger_uart_data_struct::start
uint16_t start
Definition:
logger_uart.h:35
uint16_t
unsigned short uint16_t
Definition:
types.h:16
logger_uart_data_struct::gyro_q
int16_t gyro_q
Definition:
logger_uart.h:38
std.h
int16_t
signed short int16_t
Definition:
types.h:17
PACKED
#define PACKED
Definition:
logger_uart.h:31
uint8_t
unsigned char uint8_t
Definition:
types.h:14
logger_uart_data_struct
Definition:
logger_uart.h:34
logger_uart_data_struct::gyro_p
int16_t gyro_p
Definition:
logger_uart.h:37
logger_uart_data_struct::acc_z
int16_t acc_z
Definition:
logger_uart.h:42
logger_uart_data_struct::acc_x
int16_t acc_x
Definition:
logger_uart.h:40
logger_uart_data_struct::id
int16_t id
Definition:
logger_uart.h:36
logger_uart_data_struct::phi
int16_t phi
Definition:
logger_uart.h:43
logger_uart_periodic
void logger_uart_periodic(void)
Definition:
logger_uart.c:37
logger_uart_data_struct::theta
int16_t theta
Definition:
logger_uart.h:44
logger_uart_data_struct::gyro_r
int16_t gyro_r
Definition:
logger_uart.h:39
logger_uart_data_struct::acc_y
int16_t acc_y
Definition:
logger_uart.h:41
logger_uart_data_struct::psi
int16_t psi
Definition:
logger_uart.h:45
logger_uart_init
void logger_uart_init(void)
Definition:
logger_uart.c:32
sw
airborne
modules
loggers
logger_uart.h
Generated on Tue Feb 1 2022 13:51:16 for Paparazzi UAS by
1.8.17