5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-13 20:28:37 -04:00

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

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: