GCS_MAVLink: fill AUTOPILOT_VERSION.uid2 from get_system_id_unformatted

This commit is contained in:
Peter Barker 2020-10-15 13:08:11 +11:00 committed by Andrew Tridgell
parent 9714d8dde9
commit 74f75dcd31
1 changed files with 5 additions and 0 deletions

View File

@ -2238,6 +2238,11 @@ void GCS_MAVLINK::send_autopilot_version() const
uint16_t product_id = 0;
uint64_t uid = 0;
uint8_t uid2[MAVLINK_MSG_AUTOPILOT_VERSION_FIELD_UID2_LEN] = {0};
uint8_t uid_len = sizeof(uid2); // taken as reference and modified
// by following call:
hal.util->get_system_id_unformatted(uid2, uid_len);
const AP_FWVersion &version = AP::fwversion();
flight_sw_version = version.major << (8 * 3) | \