Plane: Move MAVLink rangefinder up to parent

This commit is contained in:
Michael du Breuil 2018-05-09 00:47:33 -07:00 committed by Francisco Ferreira
parent dc5fae9ea6
commit 499df8e0b3

View File

@ -499,12 +499,6 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id)
send_ahrs2();
break;
case MSG_RANGEFINDER:
CHECK_PAYLOAD_SIZE(RANGEFINDER);
send_rangefinder_downward(plane.rangefinder);
send_distance_sensor(plane.rangefinder);
break;
case MSG_TERRAIN:
#if AP_TERRAIN_AVAILABLE
CHECK_PAYLOAD_SIZE(TERRAIN_REQUEST);