Plane: move sending of optical flow status up to base class

This commit is contained in:
Peter Barker 2018-09-02 16:33:27 +10:00 committed by Andrew Tridgell
parent 33d40500ac
commit 12c67ecaab

View File

@ -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);