Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
•
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
"
29
#include "
peripherals/video_device.h
"
30
31
#ifndef MT9F002_OUTPUT_HEIGHT
32
#define MT9F002_OUTPUT_HEIGHT 3320
33
#endif
34
35
#ifndef MT9F002_OUTPUT_WIDTH
36
#define MT9F002_OUTPUT_WIDTH 2048
37
#endif
38
39
#ifndef MT9F002_INITIAL_OFFSET_X
40
#define MT9F002_INITIAL_OFFSET_X 1000 // pixels in the raw sensor!!
41
#endif
42
43
#ifndef MT9F002_INITIAL_OFFSET_Y
44
#define MT9F002_INITIAL_OFFSET_Y 0 // pixels in the raw sensor!!
45
#endif
46
65
#ifndef MT9F002_OUTPUT_SCALER
66
#define MT9F002_OUTPUT_SCALER 1.0
67
#endif
68
74
#ifndef MT9F002_TARGET_EXPOSURE
75
#define MT9F002_TARGET_EXPOSURE 30
76
#endif
77
78
#ifndef MT9F002_TARGET_FPS
79
#define MT9F002_TARGET_FPS 5
80
#endif
81
82
84
#define UART1_DEV /dev/ttyPA1
85
86
#define UART2_DEV /dev/ttyUSB0
87
88
/* Default actuators driver */
89
#define DEFAULT_ACTUATORS "boards/bebop/actuators.h"
90
#define ActuatorDefaultSet(_x,_y) ActuatorsBebopSet(_x,_y)
91
#define ActuatorsDefaultInit() ActuatorsBebopInit()
92
#define ActuatorsDefaultCommit() ActuatorsBebopCommit()
93
94
/* Cameras */
95
extern
struct
video_config_t
bottom_camera
;
96
extern
struct
video_config_t
front_camera
;
97
98
/* by default activate onboard baro */
99
#ifndef USE_BARO_BOARD
100
#define USE_BARO_BOARD 1
101
#endif
102
103
/* The ADC from the sonar */
104
#if USE_ADC0
105
#define ADC0_ID 0
106
#define ADC0_CHANNELS 2
107
#define ADC0_CHANNELS_CNT 1
108
#define ADC0_BUF_LENGTH 8192
109
#endif
110
111
/* The SPI from the sonar */
112
#if USE_SPI0
113
#define SPI0_MODE 0
114
#define SPI0_BITS_PER_WORD 8
115
#define SPI0_MAX_SPEED_HZ 320000
116
#endif
117
118
#endif
/* CONFIG_BEBOP */
bottom_camera
struct video_config_t bottom_camera
Definition:
board.c:68
front_camera
struct video_config_t front_camera
Definition:
board.c:43
std.h
video_device.h
video_config_t
V4L2 device settings.
Definition:
video_device.h:44
sw
airborne
boards
bebop.h
Generated on Wed Aug 28 2019 16:28:55 for Paparazzi UAS by
1.8.8