|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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_common(uint8_t cmd)
Command sending function.
void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
#define DC_POWER_OFF_DELAY
how long to send power off in seconds
#define DC_SHUTTER_DELAY
how long to push shutter in seconds
void gpio_cam_ctrl_periodic(void)
Periodic.
void dc_send_shot_position(void)
Send Down the coordinates of where the photo was taken.
void dc_send_command(uint8_t cmd)
Send Command To Camera.
void dc_init(void)
initialize settings
void gpio_cam_ctrl_init(void)
void dc_periodic(void)
periodic function