ArduPlane: add DISTANCE_SENSOR support

This commit is contained in:
Pierre Kancir 2017-05-24 15:22:28 +02:00 committed by Francisco Ferreira
parent 73038a0e09
commit 9a121dc7c4
1 changed files with 2 additions and 0 deletions

View File

@ -598,6 +598,8 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id)
case MSG_RANGEFINDER: case MSG_RANGEFINDER:
CHECK_PAYLOAD_SIZE(RANGEFINDER); CHECK_PAYLOAD_SIZE(RANGEFINDER);
plane.send_rangefinder(chan); plane.send_rangefinder(chan);
CHECK_PAYLOAD_SIZE(DISTANCE_SENSOR);
send_distance_sensor_downward(plane.rangefinder);
break; break;
case MSG_TERRAIN: case MSG_TERRAIN: