Plane: Send all distance sensors

This commit is contained in:
Michael du Breuil 2018-05-08 23:47:34 -07:00 committed by Francisco Ferreira
parent 9e551350a4
commit 8afc96097b

View File

@ -502,8 +502,7 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id)
case MSG_RANGEFINDER:
CHECK_PAYLOAD_SIZE(RANGEFINDER);
send_rangefinder_downward(plane.rangefinder);
CHECK_PAYLOAD_SIZE(DISTANCE_SENSOR);
send_distance_sensor_downward(plane.rangefinder);
send_distance_sensor(plane.rangefinder);
break;
case MSG_TERRAIN: