mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
Copter: implement MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
This commit is contained in:
parent
6ec65bf629
commit
81302fe190
@ -1295,6 +1295,15 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
case MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES: {
|
||||||
|
if (packet.param1 == 1) {
|
||||||
|
gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
||||||
|
result = MAV_RESULT_ACCEPTED;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
result = MAV_RESULT_UNSUPPORTED;
|
result = MAV_RESULT_UNSUPPORTED;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user