|
|
|
@ -614,6 +614,13 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
@@ -614,6 +614,13 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
|
|
|
|
|
send_rangefinder(chan); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MSG_TERRAIN: |
|
|
|
|
#if HAVE_AP_TERRAIN |
|
|
|
|
CHECK_PAYLOAD_SIZE(TERRAIN_REQUEST); |
|
|
|
|
terrain.send_request(chan); |
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MSG_WIND: |
|
|
|
|
CHECK_PAYLOAD_SIZE(WIND); |
|
|
|
|
send_wind(chan); |
|
|
|
@ -847,6 +854,9 @@ GCS_MAVLINK::data_stream_send(void)
@@ -847,6 +854,9 @@ GCS_MAVLINK::data_stream_send(void)
|
|
|
|
|
send_message(MSG_WIND); |
|
|
|
|
send_message(MSG_RANGEFINDER); |
|
|
|
|
send_message(MSG_SYSTEM_TIME); |
|
|
|
|
#if HAVE_AP_TERRAIN |
|
|
|
|
send_message(MSG_TERRAIN); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1462,6 +1472,12 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
@@ -1462,6 +1472,12 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|
|
|
|
break; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
case MAVLINK_MSG_ID_TERRAIN_DATA: |
|
|
|
|
#if HAVE_AP_TERRAIN |
|
|
|
|
terrain.handle_data(msg); |
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
// forward unknown messages to the other link if there is one |
|
|
|
|
for (uint8_t i=0; i<num_gcs; i++) { |
|
|
|
|