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

Await Frame Timeout #13

Merged
merged 30 commits into from
Jan 4, 2024
Merged

Conversation

BytingBulldogs3539
Copy link

Adds a timeout for new frames. Don't take longer than one second waiting for a new frame to prevent complete ui hanging in photonvision if the camera becomes disconnected.

@mcm001
Copy link

mcm001 commented Jan 3, 2024

Rebase looks to be in order here

include/blocking_future.h Outdated Show resolved Hide resolved
@mcm001 mcm001 merged commit 75fc678 into PhotonVision:master Jan 4, 2024
1 check passed
mcm001 pushed a commit to PhotonVision/photonvision that referenced this pull request Jan 5, 2024
Adds logic that will reset the CSI camera in the case that it doesn't receive any new frames from the camera in 3 seconds. This is very helpful for cases where the camera cable was bumped enough to cause a temporary disconnect. Most of the time (if not all the time) the camera needs to be recreated for it to start sending frames again.

Goes with PhotonVision/photon-libcamera-gl-driver#13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants