Browse Source

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

master
Peter Barker 7 years ago committed by Andrew Tridgell
parent
commit
12c67ecaab
  1. 9
      ArduPlane/GCS_Mavlink.cpp

9
ArduPlane/GCS_Mavlink.cpp

@ -475,15 +475,6 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id) @@ -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);

Loading…
Cancel
Save