From a56ab9136ee7c7a2211dc793510c1019a8fa6722 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 10 Dec 2019 13:45:51 +1100 Subject: [PATCH] Copter: let GCS base class handle proximity and rangefinder messages --- ArduCopter/GCS_Mavlink.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 06d21c89e69cd..2e94334dc46bc 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1131,23 +1131,6 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg) } #endif - case MAVLINK_MSG_ID_DISTANCE_SENSOR: - { - copter.rangefinder.handle_msg(msg); -#if PROXIMITY_ENABLED == ENABLED - copter.g2.proximity.handle_msg(msg); -#endif - 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 {