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
led_cam_ctrl.h File Reference

Digital Camera Control. More...

#include "dc.h"
#include "led.h"
+ Include dependency graph for led_cam_ctrl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DC_PUSH   LED_ON
 
#define DC_RELEASE   LED_OFF
 
#define DC_SHUTTER_DELAY   2 /* 4Hz -> 0.5s */
 

Functions

static void led_cam_ctrl_init (void)
 
static void led_cam_ctrl_periodic (void)
 

Variables

uint8_t dc_timer
 

Detailed Description

Digital Camera Control.

Provides the control of the shutter and the zoom of a digital camera through standard binary IOs of the board.

Configuration: Since the API of led.h is used, connected pins must be defined as led numbers (usually in the airframe file):

*   <define name="DC_SHUTTER_LED" value="10"/>
*   <define name="DC_ZOOM_IN_LED" value="7"/>
*   <define name="DC_ZOOM_OUT_LED" value="8"/>
*   <define name="DC_POWER_LED" value="9"/>
* 

Related bank and pin must also be defined:

*   <define name="LED_10_BANK" value="0"/>
*   <define name="LED_10_PIN" value="2"/>
* 

The required initialization (dc_init()) and periodic (4Hz) process

Definition in file led_cam_ctrl.h.

Macro Definition Documentation

#define DC_PUSH   LED_ON

Definition at line 60 of file led_cam_ctrl.h.

Referenced by dc_send_command().

#define DC_RELEASE   LED_OFF

Definition at line 64 of file led_cam_ctrl.h.

Referenced by led_cam_ctrl_init(), and led_cam_ctrl_periodic().

#define DC_SHUTTER_DELAY   2 /* 4Hz -> 0.5s */

Definition at line 68 of file led_cam_ctrl.h.

Referenced by dc_send_command().

Function Documentation

static void led_cam_ctrl_init ( void  )
inlinestatic

Definition at line 75 of file led_cam_ctrl.h.

References dc_init(), DC_RELEASE, and dc_timer.

+ Here is the call graph for this function:

static void led_cam_ctrl_periodic ( void  )
inlinestatic

Definition at line 97 of file led_cam_ctrl.h.

References dc_periodic_4Hz(), DC_RELEASE, dc_send_shot_position, and dc_timer.

+ Here is the call graph for this function:

Variable Documentation

uint8_t dc_timer

Definition at line 26 of file led_cam_ctrl.c.

Referenced by led_cam_ctrl_init(), and led_cam_ctrl_periodic().