From 05562968e1e2c4b60148d5f63fe06639a481f66e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 10 Dec 2019 13:45:44 +1100 Subject: [PATCH] Rover: let GCS base class handle proximity and rangefinder messages --- APMrover2/GCS_Mavlink.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/APMrover2/GCS_Mavlink.cpp b/APMrover2/GCS_Mavlink.cpp index c00c16822c..133d6948ec 100644 --- a/APMrover2/GCS_Mavlink.cpp +++ b/APMrover2/GCS_Mavlink.cpp @@ -1038,14 +1038,6 @@ void GCS_MAVLINK_Rover::handleMessage(const mavlink_message_t &msg) break; } - case MAVLINK_MSG_ID_DISTANCE_SENSOR: - rover.rangefinder.handle_msg(msg); - rover.g2.proximity.handle_msg(msg); - break; - case MAVLINK_MSG_ID_OBSTACLE_DISTANCE: - rover.g2.proximity.handle_msg(msg); - break; - default: handle_common_message(msg); break;