ArduSub: add support for DISTANCE_SENSOR

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

View File

@ -561,6 +561,8 @@ bool GCS_MAVLINK_Sub::try_send_message(enum ap_message id)
#if RANGEFINDER_ENABLED == ENABLED
CHECK_PAYLOAD_SIZE(RANGEFINDER);
sub.send_rangefinder(chan);
CHECK_PAYLOAD_SIZE(DISTANCE_SENSOR);
send_distance_sensor_downward(sub.rangefinder);
#endif
break;