29 #include "generated/airframe.h"
49 #define CameraLinkDev (&((CAMERA_LINK).device))
50 #define CameraLinkTransmit(c) CameraLinkDev->put_byte(CameraLinkDev->periph, 0, c)
51 #define CameraLinkChAvailable() CameraLinkDev->char_available(CameraLinkDev->periph)
52 #define CameraLinkGetch() CameraLinkDev->get_byte(CameraLinkDev->periph)
59 #define THUMB_MSG_SIZE MORA_PAYLOAD_MSG_SIZE
60 #define THUMB_COUNT 10
90 #if PERIODIC_TELEMETRY
124 #if PERIODIC_TELEMETRY
void dc_periodic(void)
periodic function
void dc_send_command_common(uint8_t cmd)
Command sending function.
uint16_t dc_photo_nr
export the number of the last photo
void dc_send_shot_position(void)
Send Down the coordinates of where the photo was taken.
Standard Digital Camera Control Interface.
#define MORA_PAYLOAD_MSG_SIZE
#define MORA_STATUS_MSG_SIZE
#define MoraHeader(msg_id, payload_len)
#define MoraPutUint8(_byte)
struct dc_shot_union::@293 data
#define MORA_BUFFER_EMPTY
#define MORA_SHOOT_MSG_SIZE
uint8_t bin[MORA_SHOOT_MSG_SIZE]
struct mora_status_union::mora_status_struct data
uint8_t bin[MORA_STATUS_MSG_SIZE]
int32_t phi
in rad with INT32_ANGLE_FRAC
int32_t psi
in rad with INT32_ANGLE_FRAC
int32_t theta
in rad with INT32_ANGLE_FRAC
#define POS_BFP_OF_REAL(_af)
int32_t lat
in degrees*1e7
int32_t alt
in millimeters above WGS84 reference ellipsoid
int32_t lon
in degrees*1e7
static struct Int32Eulers * stateGetNedToBodyEulers_i(void)
Get vehicle body attitude euler angles (int).
static struct LlaCoor_i * stateGetPositionLla_i(void)
Get position in LLA coordinates (int).
float alt_agl_f
Altitude above ground level.
static int32_t stateGetHorizontalSpeedDir_i(void)
Get dir of horizontal ground speed (int).
static uint32_t stateGetHorizontalSpeedNorm_i(void)
Get norm of horizontal ground speed (int).
void parse_mora(struct mora_transport *t, uint8_t c)
struct mora_transport mora_protocol
int serial_init(char *port_name)
API to get/set the generic vehicle states.
static const struct usb_device_descriptor dev
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
static uint8_t thumbs[THUMB_COUNT][THUMB_MSG_SIZE]
static void send_thumbnails(struct transport_tx *trans, struct link_device *dev)
void digital_cam_uart_event(void)
int digital_cam_uart_thumbnails
void dc_send_command(uint8_t cmd)
Send Command To Camera.
int digital_cam_uart_status
void digital_cam_uart_init(void)
#define CameraLinkChAvailable()
void digital_cam_uart_periodic(void)
static uint8_t thumb_pointer
union dc_shot_union dc_shot_msg
#define CameraLinkGetch()
union mora_status_union mora_status_msg
Digital Camera Control Over UART with download of thumbnails over the PAYLOAD message.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.