Paparazzi UAS  v7.0_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 #define RADIO_AUX1 5
44 #define RADIO_AUX2 6
45 #define RADIO_AUX4 7
46 #define RADIO_AUX6 8
47 
49 extern volatile bool rc_dl_frame_available;
50 
55 extern void parse_rc_3ch_datalink(
56  uint8_t throttle_mode,
57  int8_t roll,
58  int8_t pitch);
59 
63 extern void parse_rc_4ch_datalink(
64  uint8_t mode,
65  uint8_t throttle,
66  int8_t roll,
67  int8_t pitch,
68  int8_t yaw);
69 
70 extern void rc_datalink_parse_RC_3CH(uint8_t *buf);
71 extern void rc_datalink_parse_RC_4CH(uint8_t *buf);
72 
76 extern void rc_datalink_init(void);
77 
81 extern void rc_datalink_event(void);
82 
83 #endif /* RC_DATALINK_H */
84 
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
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98
signed char int8_t
Typedef defining 8 bit char type.
Definition: vl53l1_types.h:103