From a61129f7f841d717373afcb1abbd311b7712a804 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 18 Jul 2015 14:25:12 +0900 Subject: [PATCH] GCS_MAVLink: add support for send_mission_item_reached --- libraries/GCS_MAVLink/GCS.h | 1 + libraries/GCS_MAVLink/GCS_Common.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS.h b/libraries/GCS_MAVLink/GCS.h index b837e6f46a..f45b740fdf 100644 --- a/libraries/GCS_MAVLink/GCS.h +++ b/libraries/GCS_MAVLink/GCS.h @@ -141,6 +141,7 @@ public: void send_autopilot_version(void) const; void send_local_position(const AP_AHRS &ahrs) const; void send_vibration(const AP_InertialSensor &ins) const; + void send_mission_item_reached(uint16_t seq) const; // return a bitmap of active channels. Used by libraries to loop // over active channels to send to all active channels diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index e09efd739f..4571cea1cd 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1336,3 +1336,11 @@ void GCS_MAVLINK::send_vibration(const AP_InertialSensor &ins) const ins.get_accel_clip_count(2)); #endif } + +/* + * send notification that a mission command has been completed + */ +void GCS_MAVLINK::send_mission_item_reached(uint16_t seq) const +{ + mavlink_msg_mission_item_reached_send(chan, seq); +}