|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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
126 #if PERIODIC_TELEMETRY
#define CameraLinkChAvailable()
int32_t theta
in rad with INT32_ANGLE_FRAC
void dc_send_command_common(uint8_t cmd)
Command sending function.
int32_t lon
in degrees*1e7
int digital_cam_uart_thumbnails
int32_t alt
in millimeters above WGS84 reference ellipsoid
uint16_t dc_photo_nr
export the number of the last photo
uint8_t bin[MORA_STATUS_MSG_SIZE]
#define MoraHeader(msg_id, payload_len)
static uint8_t thumbs[THUMB_COUNT][THUMB_MSG_SIZE]
static uint8_t thumb_pointer
void dc_send_command(uint8_t cmd)
Send Command To Camera.
static struct LlaCoor_i * stateGetPositionLla_i(void)
Get position in LLA coordinates (int).
static int32_t stateGetHorizontalSpeedDir_i(void)
Get dir of horizontal ground speed (int).
#define MORA_STATUS_MSG_SIZE
union mora_status_union mora_status_msg
#define MORA_PAYLOAD_MSG_SIZE
int32_t lat
in degrees*1e7
#define MORA_BUFFER_EMPTY
int32_t psi
in rad with INT32_ANGLE_FRAC
int32_t phi
in rad with INT32_ANGLE_FRAC
#define MORA_SHOOT_MSG_SIZE
int serial_init(char *port_name)
static const struct usb_device_descriptor dev
struct mora_transport mora_protocol
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
void dc_send_shot_position(void)
Send Down the coordinates of where the photo was taken.
#define MoraPutUint8(_byte)
struct dc_shot_union::@288 data
void parse_mora(struct mora_transport *t, uint8_t c)
void digital_cam_uart_event(void)
union dc_shot_union dc_shot_msg
Digital Camera Control Over UART with download of thumbnails over the PAYLOAD message.
#define CameraLinkGetch()
void digital_cam_uart_periodic(void)
int digital_cam_uart_status
static uint32_t stateGetHorizontalSpeedNorm_i(void)
Get norm of horizontal ground speed (int).
#define POS_BFP_OF_REAL(_af)
static void send_thumbnails(struct transport_tx *trans, struct link_device *dev)
static struct Int32Eulers * stateGetNedToBodyEulers_i(void)
Get vehicle body attitude euler angles (int).
float alt_agl_f
Altitude above ground level.
uint8_t bin[MORA_SHOOT_MSG_SIZE]
void digital_cam_uart_init(void)
void dc_init(void)
initialize settings
struct mora_status_union::mora_status_struct data
void dc_periodic(void)
periodic function
#define DefaultPeriodic
Set default periodic telemetry.