mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
param2 of MAV_CMD_REQUEST_MESSAGE (512) selects a specific camera instance when requesting CAMERA_INFORMATION (1-based, matching the MAVLink convention used for gimbal_device_id). A param2 of 0 retains the existing behaviour of sending information for all camera instances. The per-instance send is routed through the normal deferred-message path so that COMMAND_ACK is transmitted before the CAMERA_INFORMATION response, matching the order expected by callers that drain non-ACK messages while waiting for acknowledgement. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>