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

Give up early on empty frames #1296

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented Mar 22, 2024

Closes #1271

@mcm001 mcm001 requested a review from a team as a code owner March 22, 2024 01:05
// Sometimes CSCore gives us a zero frametime.
if (time <= 1e-6) {
time = MathUtils.wpiNanoTime();
if (time == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

@mcm001 mcm001 merged commit 2d8b1ec into PhotonVision:master Mar 22, 2024
27 checks passed
@mcm001 mcm001 deleted the heartbeat-on-empty branch March 22, 2024 03:24
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.

NT Heartbeat continues even when camera is not active
2 participants