35 #pragma GCC diagnostic push
36 #pragma GCC diagnostic ignored "-Waddress-of-packed-member"
37 #pragma GCC diagnostic ignored "-Wswitch-default"
38 #include "mavlink/paparazzi/mavlink.h"
39 #pragma GCC diagnostic pop
42 #if defined(FIXEDWING_FIRMWARE)
44 #elif defined(ROTORCRAFT_FIRMWARE)
47 #error "Mission manager: unsupported firmware"
49 #include "generated/flight_plan.h"
84 if (
msg->msgid == MAVLINK_MSG_ID_MISSION_ACK) {
98 mavlink_msg_script_current_send(MAVLINK_COMM_0,
get_nav_block());
106 MAVLINK_DEBUG(
"Warning: Mavlink mission request timed out!\n");
113 MAV_MISSION_ACCEPTED, MAV_MISSION_TYPE_MISSION);
void mavlink_block_message_handler(const mavlink_message_t *msg)
PPRZ specific mission block implementation.
void mavlink_wp_message_handler(const mavlink_message_t *msg)
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
mavlink_mission_mgr mission_mgr
Basic MAVLink datalink implementation.
#define MAVLINK_DEBUG(...)
#define MAVLinkSendMessage()
void mavlink_mission_init(mavlink_mission_mgr *mgr)
void mavlink_send_mission_ack(void)
void mavlink_mission_message_handler(const mavlink_message_t *msg)
void mavlink_mission_set_timer(void)
void mavlink_mission_periodic(void)
update current block and send if changed
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
Rotorcraft navigation functions.
void sys_time_update_timer(tid_t id, float duration)
Update the duration until a timer elapses.
tid_t sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.
void sys_time_cancel_timer(tid_t id)
Cancel a system timer by id.
Architecture independent timing functions.
static bool sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.