72#include "generated/airframe.h"
73#include "generated/modules.h"
78#ifndef DC_CAM_PWM_SHUTTER_DELAY
79#define DC_CAM_PWM_SHUTTER_DELAY 0.1
83#ifndef DC_CAM_PWM_ON_VALUE
84#define DC_CAM_PWM_ON_VALUE MAX_PPRZ
88#ifndef DC_CAM_PWM_OFF_VALUE
89#define DC_CAM_PWM_OFF_VALUE MIN_PPRZ
93#ifndef DC_CAM_PWM_SERVO
94#define DC_CAM_PWM_SERVO DC_CAM_TRIGGER
97#define CamActuatorSet(_a, _v) ActuatorSet(_a, _v)
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.
void dc_shoot_pwm_init(void)
Initialization function.
#define DC_CAM_PWM_SERVO
Servo destination.
#define CamActuatorSet(_a, _v)
#define DC_CAM_PWM_ON_VALUE
Max PWM Value.
#define DC_CAM_PWM_SHUTTER_DELAY
how long to push shutter in seconds
void dc_send_command(uint8_t cmd)
Send Command To Camera.
static uint8_t shutter_timer
Timer used for Shutter delay control.
#define DC_CAM_PWM_OFF_VALUE
Min PWM Value.
void dc_shoot_pwm_periodic(void)
Periodic function to send data.
Hardware independent API for actuators (servos, motor controllers).
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.