Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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
{
59
struct
i2c_periph
*
i2c_periph
;
60
struct
i2c_transaction
i2c_trans
;
61
};
62
63
extern
struct
mt9v117_t
mt9v117
;
64
65
void
mt9v117_init
(
struct
mt9v117_t
*mt);
66
67
#endif
/* MT9V117_H */
mt9v117
struct mt9v117_t mt9v117
Definition:
mt9v117.c:81
mt9v117_init
void mt9v117_init(struct mt9v117_t *mt)
Initialisation of the Aptina MT9V117 CMOS sensor (1/6 inch VGA, bottom camera)
Definition:
mt9v117.c:381
std.h
mt9v117_t
Definition:
mt9v117.h:58
i2c_transaction
I2C transaction structure.
Definition:
i2c.h:93
mt9v117_t::i2c_trans
struct i2c_transaction i2c_trans
I2C transaction for comminication with CMOS chip.
Definition:
mt9v117.h:60
i2c_periph
Definition:
i2c.h:144
i2c.h
mt9v117_t::i2c_periph
struct i2c_periph * i2c_periph
I2C peripheral used to communicate over.
Definition:
mt9v117.h:59
sw
airborne
boards
bebop
mt9v117.h
Generated on Tue Feb 1 2022 13:51:13 for Paparazzi UAS by
1.8.17