Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
rc_datalink.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010-2014 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, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
27 #ifndef RC_DATALINK_H
28 #define RC_DATALINK_H
29 
30 #include "std.h"
31 
32 #define RC_DL_NB_CHANNEL 5
33 
38 #define RADIO_ROLL 0
39 #define RADIO_PITCH 1
40 #define RADIO_YAW 2
41 #define RADIO_THROTTLE 3
42 #define RADIO_MODE 4
43 
45 extern volatile bool rc_dl_frame_available;
46 
51 extern void parse_rc_3ch_datalink(
52  uint8_t throttle_mode,
53  int8_t roll,
54  int8_t pitch);
55 
59 extern void parse_rc_4ch_datalink(
60  uint8_t mode,
61  uint8_t throttle,
62  int8_t roll,
63  int8_t pitch,
64  int8_t yaw);
65 
66 extern void rc_datalink_parse_RC_3CH(uint8_t *buf);
67 extern void rc_datalink_parse_RC_4CH(uint8_t *buf);
68 
72 extern void rc_datalink_init(void);
73 
77 extern void rc_datalink_event(void);
78 
79 #endif /* RC_DATALINK_H */
80 
int8_t
signed char int8_t
Typedef defining 8 bit char type.
Definition: vl53l1_types.h:103
uint8_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98
std.h
mode
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
Definition: sonar_bebop.c:69