Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
servo_cam_ctrl.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 The Paparazzi Team
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  */
22 
23 #include "servo_cam_ctrl.h"
24 
25 // Button Timer
27 
28 /* Command The Camera */
30 {
32  switch (cmd)
33  {
34  case DC_SHOOT:
35  DC_PUSH(DC_SHUTTER_SERVO);
36 #ifndef DC_SHOOT_ON_BUTTON_RELEASE
38 #endif
39  break;
40 #ifdef DC_ZOOM_IN_SERVO
41  case DC_TALLER:
42  DC_PUSH(DC_ZOOM_IN_SERVO);
43  break;
44 #endif
45 #ifdef DC_ZOOM_OUT_SERVO
46  case DC_WIDER:
47  DC_PUSH(DC_ZOOM_OUT_SERVO);
48  break;
49 #endif
50 #ifdef DC_POWER_SERVO
51  case DC_ON:
52  DC_PUSH(DC_POWER_SERVO);
53  break;
54 #endif
55  default:
56  break;
57  }
58 }
59 
60 
61 
#define dc_send_shot_position()
Definition: dc.h:126
void dc_send_command(uint8_t cmd)
Definition: dc.h:82
Definition: dc.h:85
Definition: dc.h:84
#define DC_PUSH
Definition: led_cam_ctrl.h:60
unsigned char uint8_t
Definition: types.h:14
Digital Camera Control.
uint8_t dc_timer
#define DC_SHUTTER_DELAY
Definition: led_cam_ctrl.h:68
Definition: dc.h:97