Rover: implement MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES

This commit is contained in:
Andrew Tridgell 2015-02-12 09:04:09 +11:00
parent 991afa9999
commit 149daf23a6

View File

@ -924,6 +924,14 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
}
break;
case MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES: {
if (packet.param1 == 1) {
gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
result = MAV_RESULT_ACCEPTED;
}
break;
}
default:
break;
}