mirror of https://github.com/ArduPilot/ardupilot
ArduSub: add support for DISTANCE_SENSOR
This commit is contained in:
parent
a26710d769
commit
e124cddeeb
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue