187 MESSAGE(
"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));
Periodic telemetry system header (includes downlink utility and generated code).
struct CameraSnapshot cam_snapshot
#define PPRZ_MUTEX_LOCK(_mtx)
void copilot_periodic(void)
Periodic function.
PPRZ_MUTEX(copilot_cam_snapshot_mtx)
void copilot_parse_cam_payload_dl(uint8_t *buf)
copy CAMERA_PAYLOAD message and mark it to be sent
void copilot_parse_copilot_status_dl(uint8_t *buf)
copy COPILOT_STATUS message and mark it to be sent
#define PPRZ_MUTEX_INIT(_mtx)
void copilot_parse_cam_snapshot_dl(uint8_t *buf)
copy CAMERA_SNAPSHOT message and mark it to be sent
Mission Computer module, interfacing the mission computer (also known as Copilot), based losely on ISaAC: The Intelligent Safety and Airworthiness Co-Pilot module Based on paper "A Payload Verification and Management Framework for Small UAV-based Personal Remote Sensing Systems" by Cal Coopmans and Chris Coffin.
struct CameraPayload cam_payload
uint8_t dl_buffer[MSG_SIZE]
void copilot_init(void)
Init function.
#define PPRZ_MUTEX_UNLOCK(_mtx)
void copilot_parse_payload_command_dl(uint8_t *buf)
Pass through PAYLOAD_COMMAND message and send it as PAYLOAD msg over telemetry.
struct CopilotStatus copilot_status