-
Notifications
You must be signed in to change notification settings - Fork 17
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 #36
Vision latency #36
Conversation
…ontrol for vision alignment
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
==========================================
+ Coverage 77.15% 81.74% +4.59%
==========================================
Files 18 20 +2
Lines 1160 1282 +122
Branches 119 120 +1
==========================================
+ Hits 895 1048 +153
+ Misses 239 208 -31
Partials 26 26
Continue to review full report at Codecov.
|
utilities/functions.py
Outdated
@@ -31,3 +31,10 @@ def rescale_js( | |||
def constrain_angle(angle: float) -> float: | |||
"""Wrap an angle to the interval [-pi, pi].""" | |||
return math.atan2(math.sin(angle), math.cos(angle)) | |||
|
|||
|
|||
def rotate_vector(x: float, y: float, angle: float) -> (float, float): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably use this function everywhere we do this too (we do this in the swerve code too).
Clean up code
Use proportional controller to correct lateral offset when aligning
Tests on vision.py component