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
jevois.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  */
26 #ifndef JEVOIS_H
27 #define JEVOIS_H
28 
29 #include "std.h"
30 
32 #define JEVOIS_MSG_T1 10
33 #define JEVOIS_MSG_N1 11
34 #define JEVOIS_MSG_D1 12
35 #define JEVOIS_MSG_T2 20
36 #define JEVOIS_MSG_N2 21
37 #define JEVOIS_MSG_D2 22
38 #define JEVOIS_MSG_F2 23
39 #define JEVOIS_MSG_T3 30
40 #define JEVOIS_MSG_N3 31
41 #define JEVOIS_MSG_D3 32
42 #define JEVOIS_MSG_F3 33
43 
45 #define JEVOIS_NORM 1000
46 
51 #ifndef JEVOIS_HFOV
52 #define JEVOIS_HFOV RadOfDeg(45)
53 #endif
54 
58 #ifndef JEVOIS_VFOV
59 #define JEVOIS_VFOV (3*JEVOIS_HFOV/4)
60 #endif
61 
62 extern void jevois_init(void);
63 extern void jevois_event(void);
64 
68 extern void jevois_stream(bool activate);
69 
70 // dummy variable to start/stop stream from setting
71 extern bool jevois_stream_setting;
72 
76 extern void jevois_setmapping(int number);
77 
78 // dummy variable to change mapping from setting
79 extern int jevois_mapping_setting;
80 
81 #endif
82 
void jevois_setmapping(int number)
Set video mapping.
Definition: jevois.c:353
void jevois_event(void)
Definition: jevois.c:324
bool jevois_stream_setting
Definition: jevois.c:35
void jevois_init(void)
Definition: jevois.c:80
int jevois_mapping_setting
Definition: jevois.c:34
void jevois_stream(bool activate)
Start and stop streaming.
Definition: jevois.c:343