Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
rc_intermcu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Gautier Hattenberger <gautier.hattenberger@enac.fr>
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_INTERMCU_H
28 #define RC_INTERMCU_H
29 
30 #include "std.h"
31 
32 /* We need radio defines for the Autopilot
33  * index are matching intermcu_fbw.h
34  */
35 #define RADIO_THROTTLE 0
36 #define RADIO_ROLL 1
37 #define RADIO_PITCH 2
38 #define RADIO_YAW 3
39 #define RADIO_MODE 4
40 #define RADIO_KILL_SWITCH 5
41 #define RADIO_AUX1 5 // be careful with ID 5
42 #define RADIO_AUX2 6
43 #define RADIO_AUX3 7
44 
45 #define RC_IMCU_NB_CHANNEL 8
46 
47 
51 extern void rc_intermcu_init(void);
52 
57 extern void rc_intermcu_parse_msg(uint8_t *buf);
58 extern void rc_intermcu_parse_fbw_status(uint8_t *buf);
59 
60 #endif /* RC_INTERMCU_H */
61 
void rc_intermcu_init(void)
RC init function.
Definition: rc_intermcu.c:40
void rc_intermcu_parse_fbw_status(uint8_t *buf)
Definition: rc_intermcu.c:67
void rc_intermcu_parse_msg(uint8_t *buf)
Decode intermcu message to get rc values and FBW status for RC status and frame rate TODO make a sing...
Definition: rc_intermcu.c:51
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98