From 12c67ecaab4a0492ecb53b7127a2cc8eacbba0d2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 2 Sep 2018 16:33:27 +1000 Subject: [PATCH] Plane: move sending of optical flow status up to base class --- ArduPlane/GCS_Mavlink.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 00a213d764..4a851f0edf 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -475,15 +475,6 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id) plane.send_wind(chan); break; - case MSG_OPTICAL_FLOW: -#if OPTFLOW == ENABLED - if (plane.optflow.enabled()) { - CHECK_PAYLOAD_SIZE(OPTICAL_FLOW); - send_opticalflow(plane.optflow); - } -#endif - break; - case MSG_PID_TUNING: if (plane.control_mode != MANUAL) { CHECK_PAYLOAD_SIZE(PID_TUNING);