GCS_MAVLink: announce MAVLink2 capability

This commit is contained in:
Andrew Tridgell 2016-09-16 09:47:55 +10:00
parent 7936eea1ac
commit 66073413a8
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ GCS_MAVLINK::setup_uart(const AP_SerialManager& serial_manager, AP_SerialManager
// if signing is off start by sending MAVLink1.
status->flags |= MAVLINK_STATUS_FLAG_OUT_MAVLINK1;
}
// announce that we are MAVLink2 capable
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MAVLINK2);
} else if (status) {
// user has asked to only send MAVLink1
status->flags |= MAVLINK_STATUS_FLAG_OUT_MAVLINK1;