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"/>)
84 #ifdef DC_ZOOM_IN_GPIO
88 #ifdef DC_ZOOM_OUT_GPIO
96 #ifdef DC_POWER_OFF_GPIO
104 #ifdef DC_SHOOT_ON_BUTTON_RELEASE
114 #ifdef DC_ZOOM_IN_GPIO
117 #ifdef DC_ZOOM_OUT_GPIO
123 #ifdef DC_POWER_OFF_GPIO
140 #ifndef DC_SHOOT_ON_BUTTON_RELEASE
144 #ifdef DC_ZOOM_IN_GPIO
149 #ifdef DC_ZOOM_OUT_GPIO
159 #ifdef DC_POWER_OFF_GPIO
void dc_send_command(uint8_t cmd)
Send Command To Camera.
Some architecture independent helper functions for GPIOs.
void dc_init(void)
initialize settings
Standard Digital Camera Control Interface.
#define DC_SHUTTER_DELAY
how long to push shutter in seconds
void dc_periodic(void)
periodic function
void gpio_cam_ctrl_periodic(void)
Periodic.
void gpio_cam_ctrl_init(void)
#define DC_POWER_OFF_DELAY
how long to send power off in seconds
void gpio_setup_output(uint32_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
void dc_send_shot_position(void)
Send Down the coordinates of where the photo was taken.