Skip to content

Aligning with Cone Node #174

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

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

Conversation

NolanKnight
Copy link
Contributor

Fixes #173
There is an if-statement in Robot.java that checks if the right bumper on the driver stick is pressed, and if it is the setTragetRobotAngle() method is called with a pose angle passed in from the limelight.

fieldRelative = false;
}

m_drive.driveInput(translation, rot, fieldRelative);
Copy link
Contributor

Choose a reason for hiding this comment

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

You're feeding an angle into the rotation percent. I think we should make a pid loop similar to the rotation loop that uses the limelight's angle as the error, and the target should be 0 degrees

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.

Limelight auto alignment with cone nodes
2 participants