32 #pragma GCC diagnostic push
33 #pragma GCC diagnostic ignored "-Waddress-of-packed-member"
34 #pragma GCC diagnostic ignored "-Wswitch-default"
35 #include "mavlink/paparazzi/mavlink.h"
36 #pragma GCC diagnostic pop
39 #include "generated/flight_plan.h"
45 MAVLINK_DEBUG(
"Sent BLOCK_COUNT message: count %i\n", NB_BLOCK);
51 static const char *blocks[] = FP_BLOCKS;
53 strncpy(block_name, blocks[
seq], 49);
59 MAVLINK_DEBUG(
"Sent BLOCK_ITEM message: seq %i, name %s\n",
seq, block_name);
69 case MAVLINK_MSG_ID_SCRIPT_REQUEST_LIST: {
71 mavlink_script_request_list_t block_request_list_msg;
72 mavlink_msg_script_request_list_decode(
msg, &block_request_list_msg);
73 if (block_request_list_msg.target_system ==
mavlink_system.sysid) {
97 case MAVLINK_MSG_ID_SCRIPT_REQUEST: {
99 mavlink_script_request_t block_request_msg;
100 mavlink_msg_script_request_decode(
msg, &block_request_msg);
129 case MAVLINK_MSG_ID_SCRIPT_ITEM: {
131 mavlink_script_item_t block_item_msg;
132 mavlink_msg_script_item_decode(
msg, &block_item_msg);
void mavlink_send_block(uint16_t seq)
void mavlink_block_message_handler(const mavlink_message_t *msg)
static void mavlink_send_block_count(void)
PPRZ specific mission block implementation.
void nav_goto_block(uint8_t b)
Common flight_plan functions shared between fixedwing and rotorcraft.
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
mavlink_system_t mavlink_system
mavlink_mission_mgr mission_mgr
Basic MAVLink datalink implementation.
#define MAVLINK_DEBUG(...)
#define MAVLinkSendMessage()
void mavlink_mission_set_timer(void)
void mavlink_mission_cancel_timer(void)
Common functions used within the mission library, blocks and waypoints cannot be send simultaneously ...
enum MAVLINK_MISSION_MGR_STATES state
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.