Skip to content

AP_Camera: 2nd camera should use different PWM output #27015

@rmackay9

Description

@rmackay9

Similar to #23164, if two camera servo backends are setup (e.g. CAM1_TYPE=1, CAM2_TYPE=1) then they should use different PWM outputs. Currently they will both output to any SERVOx_FUNCTION = 10 (CameraTrigger).

There are two possible solutions:

  1. create a new servo function called something like "Camera2Trigger" or "CameraTrigger2"
  2. enhance SRV_FUNCTION library so that a caller can get just the X instance of the servo output. Then camera1 could use the first instance (e.g. the one with the lower servo output) and camera2 could use the 2nd.

This issue was brought up on this 4.5 discussion https://discuss.ardupilot.org/t/separate-cam1-and-cam2-triggering/117468

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions