35 #pragma GCC diagnostic push
36 #pragma GCC diagnostic ignored "-Wswitch-default"
37 #include "mavlink/paparazzi/mavlink.h"
38 #pragma GCC diagnostic pop
46 #include "generated/flight_plan.h"
81 if (msg->msgid == MAVLINK_MSG_ID_MISSION_ACK) {
95 mavlink_msg_script_current_send(MAVLINK_COMM_0,
nav_block);
103 MAVLINK_DEBUG(
"Warning: Mavlink mission request timed out!\n");
110 MAV_MISSION_ACCEPTED);
Basic MAVLink datalink implementation.
void mavlink_mission_message_handler(const mavlink_message_t *msg)
void sys_time_cancel_timer(tid_t id)
Cancel a system timer by id.
void mavlink_mission_periodic(void)
update current block and send if changed
void mavlink_mission_init(mavlink_mission_mgr *mgr)
void mavlink_wp_message_handler(const mavlink_message_t *msg)
Common functions used within the mission library, blocks and waypoints cannot be send simultaneously ...
#define MAVLINK_DEBUG(...)
Architecture independent timing functions.
#define MAVLinkSendMessage()
void mavlink_block_message_handler(const mavlink_message_t *msg)
Rotorcraft navigation functions.
void mavlink_mission_cancel_timer(void)
void mavlink_mission_set_timer(void)
static bool sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.
void sys_time_update_timer(tid_t id, float duration)
Update the duration until a timer elapses.
void mavlink_send_mission_ack(void)
enum MAVLINK_MISSION_MGR_STATES state
mavlink_mission_mgr mission_mgr
PPRZ specific mission block implementation.
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
tid_t sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.