From 46b669a05686e9d0c4d35d6bc7976ba90d90c651 Mon Sep 17 00:00:00 2001 From: Raouf Date: Thu, 6 Sep 2018 19:18:03 +0900 Subject: [PATCH] Copter: send obstacle_distance messages to proximity lib --- ArduCopter/GCS_Mavlink.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index ebd59755d9..787ebfe14a 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1335,6 +1335,14 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg) break; } + case MAVLINK_MSG_ID_OBSTACLE_DISTANCE: + { +#if PROXIMITY_ENABLED == ENABLED + copter.g2.proximity.handle_msg(msg); +#endif + break; + } + #if HIL_MODE != HIL_MODE_DISABLED case MAVLINK_MSG_ID_HIL_STATE: // MAV ID: 90 {