Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Improve user control over camera connect/disconnect #69

Closed
PeterJohnson opened this issue Mar 25, 2017 · 1 comment
Closed

Improve user control over camera connect/disconnect #69

PeterJohnson opened this issue Mar 25, 2017 · 1 comment

Comments

@PeterJohnson
Copy link
Member

Due to the sometimes long delay incurred during connecting a USB camera, the common desire to switch between cameras, and the problems of USB camera bandwidth limitations, more control over camera connection and disconnection is desirable, particularly for USB cameras. Currently the library auto-disconnects when no sinks are listening, necessitating hacky methods for keeping the camera connection open to avoid reconnect delays when there is a sink being switched between two sources. Also, if two cameras combined exceed the USB camera bandwidth, there is no way to synchronize one stopping and the other starting when setSource is used to switch.

It seems like the cleanest approach would be to make this auto-disconnection feature optional and probably default it to disabled (at least for USB cameras) and provide API access to explicitly connect/disconnect the camera.

@PeterJohnson PeterJohnson mentioned this issue Mar 27, 2017
23 tasks
@PeterJohnson
Copy link
Member Author

Fixed by wpilibsuite/allwpilib#1252.

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

No branches or pull requests

1 participant