Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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 
94 extern int jevois_extract_nb(char *in);
95 
96 #endif
97 
bool jevois_stream_setting
Definition: jevois.c:37
void jevois_setmapping(int number)
Set video mapping.
Definition: jevois.c:431
void jevois_stream(bool activate)
Start and stop streaming.
Definition: jevois.c:421
void jevois_report(void)
Definition: jevois.c:82
int jevois_mapping_setting
Definition: jevois.c:36
void jevois_event(void)
Definition: jevois.c:402
int jevois_extract_nb(char *in)
Extract a number from jevoid ID field.
Definition: jevois.c:130
void jevois_send_string(char *s)
Generic function to send a string command to Jevois.
Definition: jevois.c:412
void jevois_send_state(void)
Send state to camera.
Definition: jevois.c:445
void jevois_init(void)
Definition: jevois.c:113
static uint32_t s