Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rmackay9 opened this issue May 8, 2024 · 2 comments
Open

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

rmackay9 opened this issue May 8, 2024 · 2 comments

Comments

@rmackay9
Copy link
Contributor

rmackay9 commented May 8, 2024

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

@Ryanf55
Copy link
Collaborator

Ryanf55 commented May 8, 2024

Would you like a multi-cam gazebo simulator set up to develop this against, or do you have hardware capable of doing it?

@rmackay9
Copy link
Contributor Author

rmackay9 commented May 8, 2024

Hi @Ryanf55,

Thanks for the kind offer! I think it's actually fairly straight forward to test even without the real hardware though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants