Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
intermcu_fbw.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, see
18  * <http://www.gnu.org/licenses/>.
19  *
20  */
21 
26 #ifndef INTERMCU_FBW_H
27 #define INTERMCU_FBW_H
28 
30 #include "pprzlink/intermcu_msg.h"
31 
32 extern bool intermcu_ap_motors_on;
33 extern pprz_t intermcu_commands[COMMANDS_NB];
34 
37 extern void intermcu_send_status(void);
38 
41 extern void intermcu_parse_IMCU_COMMANDS(uint8_t *buf);
43 extern void intermcu_forward_uplink(uint8_t *buf);
44 
45 
46 /* We need radio defines for the Autopilot
47  * index are matching rc_intermcu.h
48  */
49 #define INTERMCU_RADIO_THROTTLE 0
50 #define INTERMCU_RADIO_ROLL 1
51 #define INTERMCU_RADIO_PITCH 2
52 #define INTERMCU_RADIO_YAW 3
53 #define INTERMCU_RADIO_MODE 4
54 #define INTERMCU_RADIO_KILL_SWITCH 5
55 #define INTERMCU_RADIO_AUX1 5 // be careful with ID 5
56 #define INTERMCU_RADIO_AUX2 6
57 #define INTERMCU_RADIO_AUX3 7
58 
59 #define INTERMCU_RADIO_CONTROL_NB_CHANNEL 8
60 
61 #endif /* INTERMCU_FB_H */
62 
Inter-MCU interface.
void intermcu_send_status(void)
send fbw status message
Definition: intermcu_fbw.c:157
void intermcu_parse_IMCU_COMMANDS(uint8_t *buf)
Datalink event functions.
Definition: intermcu_fbw.c:172
void intermcu_parse_IMCU_SPEKTRUM_SOFT_BIND(uint8_t *buf)
Definition: intermcu_fbw.c:190
void intermcu_forward_uplink(uint8_t *buf)
Definition: intermcu_fbw.c:197
pprz_t intermcu_commands[COMMANDS_NB]
Definition: intermcu_fbw.c:66
bool intermcu_ap_motors_on
Definition: intermcu_fbw.c:67
int16_t pprz_t
Definition: paparazzi.h:6
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98