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.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 65 of file led_cam_ctrl.h.

Referenced by dc_send_command().

#define DC_RELEASE   LED_OFF

Definition at line 69 of file led_cam_ctrl.h.

Referenced by led_cam_ctrl_periodic().

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

Definition at line 73 of file led_cam_ctrl.h.

Referenced by dc_send_command().

Function Documentation

static void led_cam_ctrl_init ( void  )
inlinestatic

Definition at line 55 of file led_cam_ctrl.h.

References dc_init(), and dc_timer.

+ Here is the call graph for this function:

static void led_cam_ctrl_periodic ( void  )
inlinestatic

Definition at line 82 of file led_cam_ctrl.h.

References dc_periodic_4Hz(), DC_RELEASE, 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().