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

Fix videomode is null #1513

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

Juniormunk
Copy link
Contributor

There is a weird edge case at least with arducam/broken arducams/used arducams where cscore will see it when pv starts but not be able to connect to it. If we always read out the "current" video mode instead of null when it is disconnected things will work. If the camera is disconnected while we try to change the video mode when we get the current video mode it will tell us what we wanted to set it to. Then when the camera reconnects it will be in that video mode.

@Juniormunk Juniormunk requested a review from a team as a code owner November 1, 2024 02:39
@mcm001
Copy link
Contributor

mcm001 commented Nov 1, 2024

#18 (comment) idk why i chose to add this. If it doesn't break anything I don't have a problem sending it?

@Juniormunk
Copy link
Contributor Author

I would assume if the camera is not connected it doesn't have a video mode right? But also since we don't handle reconnects we need to know what it will be when it boots/connects

Copy link
Contributor

@mcm001 mcm001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's find out

@mcm001 mcm001 merged commit d7a7610 into PhotonVision:master Nov 1, 2024
31 checks passed
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