Files
ardupilot/libraries/AP_Camera
Peter BarkerandClaude Sonnet 4.6 19c796ef98 AP_Camera: support per-instance CAMERA_INFORMATION via REQUEST_MESSAGE param2
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>
2026-03-31 09:50:54 +09:00
..