APMRover2: add support for DISTANCE_SENSOR

This commit is contained in:
Pierre Kancir 2017-05-29 19:26:07 +02:00 committed by Francisco Ferreira
parent 0bc9d294fb
commit a26710d769
1 changed files with 1 additions and 0 deletions

View File

@ -417,6 +417,7 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id)
case MSG_RANGEFINDER:
CHECK_PAYLOAD_SIZE(RANGEFINDER);
rover.send_rangefinder(chan);
send_distance_sensor(rover.sonar);
break;
case MSG_MOUNT_STATUS: