mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
Validate camera and gimbal selector parameters at upload, treating NaN as unset where the field was previously reserved. Store the camera ID and status frequency for VIDEO_START_CAPTURE and VIDEO_STOP_CAPTURE with a storage tag so previously stored items keep their camera-slot meaning. Execute camera items by converting back to a command and calling AP_Camera::handle_command, removing the duplicated dispatch. Resolve gimbal selectors through AP_Mount for pitch/yaw, ROI and WPNEXT_OFFSET items. ROI items with a nonzero selector affect only the selected mount; selector zero keeps the vehicle-specific yaw behaviour.