Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
led_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 "led_cam_ctrl.h"
24 
25 // Button Timer
27 
28 
29 /* Command The Camera */
31 {
33  switch (cmd)
34  {
35  case DC_SHOOT:
36  DC_PUSH(DC_SHUTTER_LED);
37 #ifndef DC_SHOOT_ON_BUTTON_RELEASE
39 #endif
40  break;
41 #ifdef DC_ZOOM_IN_LED
42  case DC_TALLER:
43  DC_PUSH(DC_ZOOM_IN_LED);
44  break;
45 #endif
46 #ifdef DC_ZOOM_OUT_LED
47  case DC_WIDER:
48  DC_PUSH(DC_ZOOM_OUT_LED);
49  break;
50 #endif
51 #ifdef DC_POWER_LED
52  case DC_ON:
53  DC_PUSH(DC_POWER_LED);
54  break;
55 #endif
56  default:
57  break;
58  }
59 }
60 
61 
#define dc_send_shot_position()
Definition: dc.h:126
Digital Camera Control.
Definition: dc.h:82
Definition: dc.h:85
uint8_t dc_timer
Definition: led_cam_ctrl.c:26
Definition: dc.h:84
#define DC_PUSH
Definition: led_cam_ctrl.h:56
unsigned char uint8_t
Definition: types.h:14
#define DC_SHUTTER_DELAY
Definition: led_cam_ctrl.h:64
Definition: dc.h:97
void dc_send_command(uint8_t cmd)
Definition: led_cam_ctrl.c:30