GCS_MAVLink: Adapt to upstream mavlink changes in autopilot_version message

This commit is contained in:
Dr.-Ing. Amilcar Do Carmo Lucas 2018-01-09 11:09:49 +01:00 committed by Randy Mackay
parent 8284746420
commit 8703eecfae

View File

@ -1383,6 +1383,7 @@ void GCS_MAVLINK::send_autopilot_version() const
uint16_t vendor_id = 0;
uint16_t product_id = 0;
uint64_t uid = 0;
uint8_t uid2[18] = {0};
const AP_FWVersion &version = get_fwver();
flight_sw_version = version.major << (8 * 3) | \
@ -1417,7 +1418,8 @@ void GCS_MAVLINK::send_autopilot_version() const
(uint8_t *)os_custom_version,
vendor_id,
product_id,
uid
uid,
uid2
);
}