Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
video_cam_ctrl.c
Go to the documentation of this file.
1 /*
2  * Copyright (C)
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, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
26 #include "video_cam_ctrl.h"
27 #include "generated/modules.h"
28 
29 // Include Standard Camera Control Interface
30 #include "modules/digital_cam/dc.h"
31 
32 
34 {
35  // Call common DC init
36  dc_init();
37 }
38 
40 {
41  // Common DC Periodic task
42  dc_periodic();
43 }
44 
45 #ifndef SITL
47 #endif
48 
49 /* Command The Camera */
51 {
52  switch (cmd) {
53  case DC_SHOOT:
54 #ifndef SITL
56 #endif
58  break;
59  case DC_TALLER:
60  break;
61  case DC_WIDER:
62  break;
63  case DC_ON:
64  break;
65  case DC_OFF:
66  break;
67  default:
68  break;
69  }
70 
71  // call command send_command function
73 }
dc_send_command_common
void dc_send_command_common(uint8_t cmd)
Command sending function.
Definition: dc.c:189
dc_send_command
void dc_send_command(uint8_t cmd)
Send Command To Camera.
Definition: video_cam_ctrl.c:50
digital_cam_video_periodic
void digital_cam_video_periodic(void)
Definition: video_cam_ctrl.c:39
DC_OFF
@ DC_OFF
Definition: dc.h:116
dc.h
video_capture_shoot
void video_capture_shoot(void)
Definition: video_capture.c:100
DC_WIDER
@ DC_WIDER
Definition: dc.h:102
uint8_t
unsigned char uint8_t
Definition: types.h:14
DC_TALLER
@ DC_TALLER
Definition: dc.h:103
dc_send_shot_position
void dc_send_shot_position(void)
Send Down the coordinates of where the photo was taken.
Definition: dc.c:104
video_capture.h
digital_cam_video_init
void digital_cam_video_init(void)
Definition: video_cam_ctrl.c:33
DC_SHOOT
@ DC_SHOOT
Definition: dc.h:100
DC_ON
@ DC_ON
Definition: dc.h:115
dc_init
void dc_init(void)
initialize settings
Definition: dc.c:156
video_cam_ctrl.h
Digital Camera Control: controls triggering of an embedded digital camera on a linux based autopilot.
dc_periodic
void dc_periodic(void)
periodic function
Definition: dc.c:273