Paparazzi UAS  v4.0.4_stable-3-gf39211a
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);
38  break;
39 #ifdef DC_ZOOM_IN_LED
40  case DC_TALLER:
41  DC_PUSH(DC_ZOOM_IN_LED);
42  break;
43 #endif
44 #ifdef DC_ZOOM_OUT_LED
45  case DC_WIDER:
46  DC_PUSH(DC_ZOOM_OUT_LED);
47  break;
48 #endif
49 #ifdef DC_POWER_LED
50  case DC_ON:
51  DC_PUSH(DC_POWER_LED);
52  break;
53 #endif
54  default:
55  break;
56  }
57 }
58 
59 
#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:65
unsigned char uint8_t
Definition: types.h:14
#define DC_SHUTTER_DELAY
Definition: led_cam_ctrl.h:73
Definition: dc.h:97
void dc_send_command(uint8_t cmd)
Definition: led_cam_ctrl.c:30