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
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 
33 #ifndef MT9V117_TARGET_FPS
34 #define MT9V117_TARGET_FPS 0
35 #endif
36 
37 // parameters for undistortion
38 #ifndef MT9V117_FOCAL_X
39 #define MT9V117_FOCAL_X 347.22f
40 #endif
41 #ifndef MT9V117_FOCAL_Y
42 #define MT9V117_FOCAL_Y 347.22f
43 #endif
44 #ifndef MT9V117_CENTER_X
45 #define MT9V117_CENTER_X 120.0f
46 #endif
47 #ifndef MT9V117_CENTER_Y
48 #define MT9V117_CENTER_Y 120.0f
49 #endif
50 #ifndef MT9V117_DHANE_K
51 #define MT9V117_DHANE_K 1.0f
52 #endif
53 
54 
55 struct mt9v117_t {
58 };
59 
60 void mt9v117_init(struct mt9v117_t *mt);
61 
62 #endif /* MT9V117_H */
void mt9v117_init(struct mt9v117_t *mt)
Initialisation of the Aptina MT9V117 CMOS sensor (1/6 inch VGA, bottom camera)
Definition: mt9v117.c:368
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:56
struct i2c_transaction i2c_trans
I2C transaction for comminication with CMOS chip.
Definition: mt9v117.h:57
Architecture independent I2C (Inter-Integrated Circuit Bus) API.