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

Autonomous improvements #37

Merged
merged 23 commits into from
Mar 7, 2024
Merged

Autonomous improvements #37

merged 23 commits into from
Mar 7, 2024

Conversation

team6101
Copy link
Collaborator

@team6101 team6101 commented Mar 6, 2024

Description

Describe the changes in this PR and why they are needed.

Checklist before marking this PR as ready for review

  • All the PR checks are passing (you see the green checkmark)
  • I have written comments on the PR where reviewers may have questions

Once you have the PR ready for review, request reviewers from the upper-right of the screen with the cog on the reviewers section.

@team6101
Copy link
Collaborator Author

team6101 commented Mar 6, 2024

This branch has a whole bunch of previous commits tacked to it as well for some reason

@team6101 team6101 marked this pull request as ready for review March 6, 2024 19:49
Copy link

@JacobLikesBagels JacobLikesBagels left a comment

Choose a reason for hiding this comment

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

Seems legit

Comment on lines +45 to +61
this.gyro = Robot.getGyroscope();
rotationPID =
new ProfiledPIDController(
Constants.ROTATION_GAINS.P,
Constants.ROTATION_GAINS.I,
Constants.ROTATION_GAINS.D,
new Constraints(1, 1)
);
rotationPID.setGoal(targetTurnDegrees);
rotationPID.reset(0);
if (targetTurnDegrees > 0) {
turnDirection = TurnDirection.RIGHT;
} else {
turnDirection = TurnDirection.LEFT;
}
System.out.println("We will be turning " + turnDirection);
SmartDashboard.putNumber("target degree", targetTurnDegrees);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was moved here because it's better

@team6101 team6101 merged commit d0fbd37 into main Mar 7, 2024
2 checks passed
@team6101 team6101 deleted the Autonomous-Improvements branch March 7, 2024 01: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.

2 participants