Paparazzi UAS  v5.15_devel-230-gc96ce27
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 extern void jevois_report(void);
65 
70 extern void jevois_send_string(char *s);
71 
75 extern void jevois_stream(bool activate);
76 
77 // dummy variable to start/stop stream from setting
78 extern bool jevois_stream_setting;
79 
83 extern void jevois_setmapping(int number);
84 
85 // dummy variable to change mapping from setting
86 extern int jevois_mapping_setting;
87 
90 extern void jevois_send_state(void);
91 
92 #endif
93 
static uint32_t s
void jevois_send_state(void)
Send state to camera.
Definition: jevois.c:436
void jevois_setmapping(int number)
Set video mapping.
Definition: jevois.c:422
void jevois_event(void)
Definition: jevois.c:393
bool jevois_stream_setting
Definition: jevois.c:37
void jevois_init(void)
Definition: jevois.c:114
int jevois_mapping_setting
Definition: jevois.c:36
void jevois_send_string(char *s)
Generic function to send a string command to Jevois.
Definition: jevois.c:403
void jevois_report(void)
Definition: jevois.c:83
void jevois_stream(bool activate)
Start and stop streaming.
Definition: jevois.c:412