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

Make climb use encoders #25

Merged
merged 7 commits into from
Feb 28, 2024
Merged

Make climb use encoders #25

merged 7 commits into from
Feb 28, 2024

Conversation

team6101
Copy link
Collaborator

@team6101 team6101 commented Feb 26, 2024

Description

We made the arms use encoder positions because using time is unreliable and inconvenient

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.

extendArms();
//extendArms();
Robot.motors.getLeftClimb().set(Constants.CLIMB_EXTENSION_SPEED);
Robot.motors.getRightClimb().set(Constants.CLIMB_EXTENSION_SPEED);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we added the code to use an encoder, but there isn't an encoder, so we made the climb manual until we add an encoder

@@ -13,12 +14,28 @@ public void addActionToRun(AutonAction action) {
}

public void onEveryFrame() {
for (int i = 0; i < actions.size(); i++) {
AutonAction action = actions.get(i);
Iterator<AutonAction> it = actions.iterator();
Copy link
Member

Choose a reason for hiding this comment

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

Hey! Iterators! Nice!

@team6101 team6101 merged commit 4d102f8 into main Feb 28, 2024
2 checks passed
@team6101 team6101 deleted the make-climb-use-encoders branch February 28, 2024 22:27
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