Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
disco.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 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  */
21 
22 #ifndef CONFIG_DISCO
23 #define CONFIG_DISCO
24 
25 #define BOARD_DISCO
26 
27 #include "std.h"
29 // reuse bebop video driver
30 #include "boards/bebop/mt9f002.h"
31 
33 #define UART1_DEV /dev/ttyPA1
34 #define GPS_UBX_ENABLE_NMEA_DATA_MASK 0xff
35 
36 #define UART2_DEV /dev/ttyUSB0
37 
38 #define UART3_DEV /dev/uart-sbus
39 
40 /* Default actuators driver */
41 #define DEFAULT_ACTUATORS "boards/disco/actuators.h"
42 #define ActuatorDefaultSet(_x,_y) ActuatorsDiscoSet(_x,_y)
43 #define ActuatorsDefaultInit() ActuatorsDiscoInit()
44 #define ActuatorsDefaultCommit() ActuatorsDiscoCommit()
45 
46 /* Cameras */
47 extern struct video_config_t bottom_camera;
48 extern struct video_config_t front_camera;
49 
50 /* ISP */
52 
53 /* by default activate onboard baro */
54 #ifndef USE_BARO_BOARD
55 #define USE_BARO_BOARD 1
56 #endif
57 
58 /* The ADC from the sonar */
59 #if USE_ADC0
60 #define ADC0_ID 0
61 #define ADC0_CHANNELS 2
62 #define ADC0_CHANNELS_CNT 1
63 #define ADC0_BUF_LENGTH 8192
64 #endif
65 
66 /* The SPI from the sonar */
67 #if USE_SPI0
68 #define SPI0_MODE 0
69 #define SPI0_BITS_PER_WORD 8
70 #define SPI0_MAX_SPEED_HZ 320000
71 #endif
72 
73 #endif /* CONFIG_DISCO */
struct video_config_t bottom_camera
Definition: board.c:68
Initialization and configuration of the MT9F002 CMOS Chip.
struct mt9f002_t mt9f002
Definition: disco.h:51
struct video_config_t front_camera
Video thread dummy for simulation.
Definition: board.c:43
V4L2 device settings.
Definition: video_device.h:44