Paparazzi UAS  v5.15_devel-112-g521f3cf
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mt9v117.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 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, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
27 #ifndef MT9V117_H
28 #define MT9V117_H
29 
30 #include "std.h"
31 #include "mcu_periph/i2c.h"
32 //#include "generated/airframe.h"
33 
34 #ifndef MT9V117_TARGET_FPS
35 #define MT9V117_TARGET_FPS 0
36 #endif
37 
38 // parameters for undistortion, defaults are rough estimates
39 #ifndef MT9V117_FOCAL_X
40 #define MT9V117_FOCAL_X 307.f
41 #endif
42 #ifndef MT9V117_FOCAL_Y
43 #define MT9V117_FOCAL_Y 307.f
44 #endif
45 #ifndef MT9V117_CENTER_X
46 #define MT9V117_CENTER_X 120.f
47 #endif
48 #ifndef MT9V117_CENTER_Y
49 #define MT9V117_CENTER_Y 120.f
50 #endif
51 #ifndef MT9V117_DHANE_K
52 #define MT9V117_DHANE_K 1.f
53 #endif
54 #ifndef MT9V117_TARGET_LUMA
55 #define MT9V117_TARGET_LUMA 18000
56 #endif
57 
58 struct mt9v117_t {
61 };
62 
63 extern struct mt9v117_t mt9v117;
64 
65 void mt9v117_init(struct mt9v117_t *mt);
66 
67 #endif /* MT9V117_H */
struct mt9v117_t mt9v117
Definition: mt9v117.c:73
void mt9v117_init(struct mt9v117_t *mt)
Initialisation of the Aptina MT9V117 CMOS sensor (1/6 inch VGA, bottom camera)
Definition: mt9v117.c:373
I2C transaction structure.
Definition: i2c.h:93
I2C peripheral structure.
Definition: i2c.h:138
struct i2c_periph * i2c_periph
I2C peripheral used to communicate over.
Definition: mt9v117.h:59
struct i2c_transaction i2c_trans
I2C transaction for comminication with CMOS chip.
Definition: mt9v117.h:60
Architecture independent I2C (Inter-Integrated Circuit Bus) API.