mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Move the common mavlink_msg_camera_information_send call into AP_Mount_Backend::send_camera_information(), following the same pattern as send_gimbal_device_attitude_status(). Backends supply their specific data via virtual getter overrides: get_camera_vendor_name(), get_camera_model_name(), get_camera_firmware_version(), get_camera_focal_length_mm(), get_camera_lens_id(), and get_camera_cap_flags(). Backends suppress sending by leaving has_camera_information() returning false (the base class default); backends with a known camera override it to return true. Siyi's previous !_fw_version.received guard is dropped — the message now sends with fw_version=0 until the version is received. Also fixes the misaligned parameter comments in Viewpro's send call (focal_length was labelled as sensor_size_h), since there is now only one copy of those comments. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>