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

Adds scoring features #37

Merged
merged 24 commits into from
Jan 22, 2024
Merged

Adds scoring features #37

merged 24 commits into from
Jan 22, 2024

Conversation

honzikschenk
Copy link
Collaborator

@honzikschenk honzikschenk commented Jan 19, 2024

Adds the rest of the necessary scoring features for MVA (almost)

  • Adds real motor IOs
  • Fully simulates scoring/state logic
  • Adds banner sensor implementation

Here's an example of the simulation with aiming and mode switching. (kP is a bit over-tuned)

@honzikschenk honzikschenk added this to the Scoring MVP milestone Jan 19, 2024
@honzikschenk honzikschenk self-assigned this Jan 19, 2024
@honzikschenk honzikschenk linked an issue Jan 19, 2024 that may be closed by this pull request
3 tasks
@honzikschenk honzikschenk requested review from jkleiber, minhnguyenbhs and charlesmackenzie and removed request for minhnguyenbhs January 21, 2024 05:46
@honzikschenk honzikschenk marked this pull request as ready for review January 21, 2024 05:47
@honzikschenk
Copy link
Collaborator Author

The formatter for some reason won't let me ignore the button binding styles.

Copy link
Member

@jkleiber jkleiber left a comment

Choose a reason for hiding this comment

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

Some first pass comments. For others trying to review this PR, there are a lot of files Github indicates as changed that aren't actually changed. I used this link to assist in the review of what was actually changed

README.md Outdated Show resolved Hide resolved
src/main/java/frc/robot/RobotContainer.java Show resolved Hide resolved
src/main/java/frc/robot/utils/InterpolateDouble.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/utils/InterpolateDouble.java Outdated Show resolved Hide resolved
@honzikschenk honzikschenk requested a review from jkleiber January 22, 2024 14:38
Copy link
Member

@jkleiber jkleiber left a comment

Choose a reason for hiding this comment

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

Only a few comments left, mostly about the banner sensor

@@ -10,14 +19,22 @@ public class ScoringSubsystem extends SubsystemBase {
private final AimerIO aimerIo;
private final AimerIOInputsAutoLogged aimerInputs = new AimerIOInputsAutoLogged();

DigitalInput bannerSensor = new DigitalInput(Constants.SensorConstants.bannerPort);
Copy link
Member

Choose a reason for hiding this comment

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

This line should be deleted now that it's in the IO class

src/main/java/frc/robot/utils/InterpolateDouble.java Outdated Show resolved Hide resolved
@honzikschenk honzikschenk requested a review from jkleiber January 22, 2024 15:30
Copy link
Member

@jkleiber jkleiber left a comment

Choose a reason for hiding this comment

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

Only one thing left before this is ready to go imo

src/main/java/frc/robot/utils/InterpolateDouble.java Outdated Show resolved Hide resolved
@honzikschenk honzikschenk requested a review from jkleiber January 22, 2024 15:40
jkleiber
jkleiber previously approved these changes Jan 22, 2024
Copy link
Member

@jkleiber jkleiber left a comment

Choose a reason for hiding this comment

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

approved!

@honzikschenk honzikschenk dismissed jkleiber’s stale review January 22, 2024 15:41

The merge-base changed after approval.

@honzikschenk
Copy link
Collaborator Author

honzikschenk commented Jan 22, 2024

@jkleiber Sorry, I don't know what's happening. This seems to be an issue whenever I do a PR. Could it be the rebasing or the "re-request review" button I've been pressing?

Should I just bypass it again?

jkleiber
jkleiber previously approved these changes Jan 22, 2024
@honzikschenk honzikschenk dismissed jkleiber’s stale review January 22, 2024 16:46

The merge-base changed after approval.

@jkleiber jkleiber removed the request for review from charlesmackenzie January 22, 2024 16:48
@jkleiber jkleiber closed this Jan 22, 2024
@jkleiber jkleiber reopened this Jan 22, 2024
@jkleiber
Copy link
Member

@redPlover I closed and re-opened the PR and also changed the branch protection settings per this known issue. CI seems to be working now.

I think the cause is related to GitHub not handling the merge updates to branches (another reason to use rebase I guess, but this shouldn't actually be a problem)

@honzikschenk honzikschenk merged commit 984d5ea into main Jan 22, 2024
5 checks passed
@honzikschenk
Copy link
Collaborator Author

Thank you!

@honzikschenk honzikschenk deleted the scoring-features branch January 22, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional scoring mechanism features
2 participants