26 #include "generated/airframe.h"
27 #include "generated/modules.h"
63 tab[1] = (
uint8_t)(expo * 10.f);
65 DOWNLINK_SEND_PAYLOAD_COMMAND(
extra_pprz_tp, EXTRA_DOWNLINK_DEVICE, &dst_id, 2, tab);
69 if (DL_PAYLOAD_COMMAND_ac_id(buf) != AC_ID) {
return; }
72 if (DL_PAYLOAD_COMMAND_command_length(buf) == 2 && DL_PAYLOAD_COMMAND_command(buf)[0] ==
'e') {
73 dc_exposure = DL_PAYLOAD_COMMAND_command(buf)[1] / 10.0;
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.
float dc_exposure
camera exposure
Standard Digital Camera Control Interface.
Common code for AP and FBW telemetry.
void pprzlink_cam_ctrl_init(void)
void dc_send_command(uint8_t cmd)
Send Command To Camera.
void pprzlink_cam_ctrl_periodic(void)
Periodic.
void dc_expo_cb(uint8_t *buf)
void dc_set_expo(float expo)
Digital Camera Control with PPRZLINK messages.
#define PPRZLINK_CAM_AUTO_EXPO
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.