37#include "generated/airframe.h"
38#include "generated/modules.h"
46#define DC_PUSH gpio_set
50#define DC_RELEASE gpio_clear
54#ifndef DC_SHUTTER_DELAY
55#define DC_SHUTTER_DELAY 0.5
59#ifndef DC_POWER_OFF_DELAY
60#define DC_POWER_OFF_DELAY 0.75
64#warning DC_SHUTTER_LED is obsolete, please use DC_SHUTTER_GPIO
66#ifndef DC_SHUTTER_GPIO
67#error DC: Please specify at least a DC_SHUTTER_GPIO (e.g. <define name="DC_SHUTTER_GPIO" value="GPIOC,GPIO12"/>)
85#ifdef DC_ZOOM_OUT_GPIO
93#ifdef DC_POWER_OFF_GPIO
101#ifdef DC_SHOOT_ON_BUTTON_RELEASE
111#ifdef DC_ZOOM_IN_GPIO
114#ifdef DC_ZOOM_OUT_GPIO
120#ifdef DC_POWER_OFF_GPIO
137#ifndef DC_SHOOT_ON_BUTTON_RELEASE
141#ifdef DC_ZOOM_IN_GPIO
146#ifdef DC_ZOOM_OUT_GPIO
156#ifdef DC_POWER_OFF_GPIO
void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
void dc_periodic(void)
periodic function
void dc_send_command_common(uint8_t cmd)
Command sending function.
void dc_send_shot_position(void)
Send Down the coordinates of where the photo was taken.
Standard Digital Camera Control Interface.
Some architecture independent helper functions for GPIOs.
#define DC_POWER_OFF_DELAY
how long to send power off in seconds
void dc_send_command(uint8_t cmd)
Send Command To Camera.
void gpio_cam_ctrl_init(void)
#define DC_SHUTTER_DELAY
how long to push shutter in seconds
void gpio_cam_ctrl_periodic(void)
Periodic.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.