Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bebop.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freek van Tienen <freek.v.tienen@gmail.com>
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 CONFIG_BEBOP
24 #define CONFIG_BEBOP
25 
26 #define BOARD_BEBOP
27 
28 #include "std.h"
30 #include "boards/bebop/mt9f002.h"
31 
33 #define UART1_DEV /dev/ttyPA1
34 
35 #define GPS_UBX_ENABLE_NMEA_DATA_MASK 0xff
36 
40 #ifndef UART2_DEV
41 #define UART2_DEV /dev/ttyUSB0
42 #endif
43 #ifndef UART4_DEV
44 #define UART4_DEV /dev/ttyUSB1
45 #endif
46 #ifndef UART5_DEV
47 #define UART5_DEV /dev/ttyACM0
48 #endif
49 #ifndef UART6_DEV
50 #define UART6_DEV /dev/ttyACM1
51 #endif
52 
53 /* Default actuators driver */
54 #define DEFAULT_ACTUATORS "boards/bebop/actuators.h"
55 #define ActuatorDefaultSet(_x,_y) ActuatorsBebopSet(_x,_y)
56 #define ActuatorsDefaultInit() ActuatorsBebopInit()
57 #define ActuatorsDefaultCommit() ActuatorsBebopCommit()
58 
59 /* Cameras */
60 extern struct video_config_t bottom_camera;
61 extern struct video_config_t front_camera;
62 
63 /* ISP */
65 
66 /* by default activate onboard baro */
67 #ifndef USE_BARO_BOARD
68 #define USE_BARO_BOARD 1
69 #endif
70 
71 /* The ADC from the sonar */
72 #if USE_ADC0
73 #define ADC0_ID 0
74 #define ADC0_CHANNELS 2
75 #define ADC0_CHANNELS_CNT 1
76 #define ADC0_BUF_LENGTH 8192
77 #endif
78 
79 /* The SPI from the sonar */
80 #if USE_SPI0
81 #define SPI0_MODE 0
82 #define SPI0_BITS_PER_WORD 8
83 #define SPI0_MAX_SPEED_HZ 320000
84 #endif
85 
86 #endif /* CONFIG_BEBOP */
struct video_config_t bottom_camera
Definition: board.c:68
struct video_config_t front_camera
Video thread dummy for simulation.
Definition: board.c:43
Initialization and configuration of the MT9F002 CMOS Chip.
struct mt9f002_t mt9f002
Definition: bebop.h:64
V4L2 device settings.
Definition: video_device.h:55