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

Vision latency #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

james-ward
Copy link
Contributor

No description provided.

@codecov-io
Copy link

Codecov Report

Merging #62 into master will increase coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
+ Coverage   85.31%   85.48%   +0.16%     
==========================================
  Files          20       20              
  Lines        1369     1371       +2     
  Branches      133      134       +1     
==========================================
+ Hits         1168     1172       +4     
+ Misses        169      168       -1     
+ Partials       32       31       -1
Impacted Files Coverage Δ
components/vision.py 98.43% <100%> (+0.05%) ⬆️
utilities/pure_pursuit.py 89.58% <0%> (+1.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67d57a3...9d5a022. Read the comment docs.

self.ping_time = time.monotonic()
t = time.monotonic()
if t - self.ping_time > 0.5:
# Only ping every 500ms - don't keep smashing NetworkTables
Copy link
Member

Choose a reason for hiding this comment

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

Given that we're still constantly flushing NetworkTables here, the impact this will have on traffic is negligible.

The performance impact should also be close-to-negligible iff we have the latest wpilib.

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.

3 participants