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 interpolated second shot #146

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

viveknadig282
Copy link
Member

@viveknadig282 viveknadig282 commented Apr 15, 2022

Summary

Checklist

  • I have read the Contributing document.

  • If code changes were made then they have been tested.

@viveknadig282 viveknadig282 linked an issue Apr 15, 2022 that may be closed by this pull request
@viveknadig282
Copy link
Member Author

viveknadig282 commented Apr 15, 2022

This branches off shooting-interpolation branch

@StarDylan
Copy link
Contributor

So, what does this commit do exactly? I'm confused why we need to keep the distance value for the second ball

@viveknadig282
Copy link
Member Author

We need the previous distance to keep the same interpolation values for the second shot because the first shot blocks the limelight so the raw distance from the limelight is messed up.

adityapawar1
adityapawar1 previously approved these changes Apr 17, 2022
@@ -170,7 +155,7 @@ public boolean isFinished() {

@Override
public void initialize() {
Limelight.enable();
// Limelight.enable();
Copy link
Member

Choose a reason for hiding this comment

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

Limelight will be on for the whole match because it reduces the time it takes for the robot to think its tracking the target. Because of the delay, it start doing odometry auto align which shakes the robot a little bit and makes the shots less accurate

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.

Shoot two balls right after each other
4 participants