Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bebop_front_camera.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2014 The Paparazzi Community
3  * 2015 Freek van Tienen <freek.v.tienen@gmail.com>
4  *
5  * This file is part of Paparazzi.
6  *
7  * Paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * Paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, see
19  * <http://www.gnu.org/licenses/>.
20  *
21  */
22 
32 #ifndef BEBOP_FRONT_CAMERA_H
33 #define BEBOP_FRONT_CAMERA_H
34 
35 #include "std.h"
36 
37 // Main viewvideo structure
39  struct v4l2_device *dev;
41  volatile bool take_shot;
43  volatile bool is_streaming;
46  bool use_rtp;
47 };
49 
50 // Module functions
51 extern void bebop_front_camera_init(void);
52 extern void bebop_front_camera_periodic(void);
53 extern void bebop_front_camera_start(void);
54 extern void bebop_front_camera_stop(void);
55 extern void bebop_front_camera_take_shot(bool take);
56 
57 #endif /* BEBOP_FRONT_CAMERA_H */
58 
unsigned short uint16_t
Definition: types.h:16
volatile bool take_shot
Wether to take an image.
uint8_t fps
The amount of frames per second.
struct bebopfrontcamera_t bebop_front_camera
void bebop_front_camera_stop(void)
Stops the streaming This could take some time, because the thread is stopped asynchronous.
uint16_t shot_number
The last shot number.
void bebop_front_camera_take_shot(bool take)
bool use_rtp
Stream over RTP.
struct v4l2_device * dev
The V4L2 device that is used for the video stream.
uint8_t quality_factor
Quality factor during the stream.
void bebop_front_camera_start(void)
Start with streaming.
void bebop_front_camera_init(void)
Initialize the view video.
unsigned char uint8_t
Definition: types.h:14
void bebop_front_camera_periodic(void)
A dummy for now.
uint8_t downsize_factor
Downsize factor during the stream.
volatile bool is_streaming
When the device is streaming.