132 cam_snapshot.cam_id = DL_CAMERA_SNAPSHOT_DL_camera_id(buf);
133 cam_snapshot.cam_state = DL_CAMERA_SNAPSHOT_DL_camera_state(buf);
134 cam_snapshot.snapshot_num = DL_CAMERA_SNAPSHOT_DL_snapshot_image_number(buf);
135 cam_snapshot.snapshot_valid = DL_CAMERA_SNAPSHOT_DL_snapshot_valid(buf);
136 cam_snapshot.lens_temp = DL_CAMERA_SNAPSHOT_DL_lens_temp(buf);
137 cam_snapshot.array_temp = DL_CAMERA_SNAPSHOT_DL_array_temp(buf);
151 cam_payload.timestamp = DL_CAMERA_PAYLOAD_DL_timestamp(buf);
152 cam_payload.used_mem = DL_CAMERA_PAYLOAD_DL_used_memory(buf);
153 cam_payload.used_disk = DL_CAMERA_PAYLOAD_DL_used_disk(buf);
154 cam_payload.door_status = DL_CAMERA_PAYLOAD_DL_door_status(buf);
155 cam_payload.error_code = DL_CAMERA_PAYLOAD_DL_error_code(buf);
187MESSAGE(
"Forwarding PAYLOAD_COMMAND messages.")
189 if (DL_PAYLOAD_COMMAND_ac_id(buf) == AC_ID) {
190 uint8_t len = DL_PAYLOAD_COMMAND_command_length(buf);
195 len, DL_PAYLOAD_COMMAND_command(buf));
201 len, DL_PAYLOAD_COMMAND_command(buf));
int pprz_mtx_unlock(pprz_mutex_t *mtx)
int pprz_mtx_init(pprz_mutex_t *mtx)
int pprz_mtx_lock(pprz_mutex_t *mtx)
Mission Computer module, interfacing the mission computer (also known as Copilot),...
pprz_mutex_t copilot_cam_snapshot_mtx
pprz_mutex_t copilot_status_mtx
pprz_mutex_t copilot_cam_payload_mtx
struct CameraPayload cam_payload
void copilot_init(void)
Init function.
struct CopilotStatus copilot_status
void copilot_parse_cam_snapshot_dl(uint8_t *buf)
copy CAMERA_SNAPSHOT message and mark it to be sent
void copilot_parse_cam_payload_dl(uint8_t *buf)
copy CAMERA_PAYLOAD message and mark it to be sent
void copilot_parse_payload_command_dl(uint8_t *buf)
Pass through PAYLOAD_COMMAND message and send it as PAYLOAD msg over telemetry.
struct CameraSnapshot cam_snapshot
void copilot_parse_copilot_status_dl(uint8_t *buf)
copy COPILOT_STATUS message and mark it to be sent
void copilot_periodic(void)
Periodic function.
uint8_t * datalink_get_buffer(void)
get datalink buffer address
Periodic telemetry system header (includes downlink utility and generated code).
struct pprzMutex pprz_mutex_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.