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

151 create midline notes auton #152

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

Conversation

Griffin9881
Copy link
Contributor

Pull Request


Issue Number

Comments

@Griffin9881 Griffin9881 self-assigned this Apr 15, 2024
@Griffin9881 Griffin9881 linked an issue Apr 15, 2024 that may be closed by this pull request
public MidlineNoteAutonAmp(Optional<Alliance> alliance) {
super(alliance);

this.setInitialPose(Trajectories.getFromPosition1ToAmpTrajectory());
Copy link
Contributor

@ChasingCode34 ChasingCode34 Apr 27, 2024

Choose a reason for hiding this comment

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

Change the initial trajectory to pathFromPos1TopNoteTrajectory.

Comment on lines +29 to +34
followPathCommand(Paths.pathFromTopNoteTo2ndTopNote)
.until(acquisition::isNotePresent),
new ScoringElevatorPositionCommand(ElevatorSetpoints.Passer, FinishActions.NoDisable)
.onlyIf(() -> storage.noteExitingStorage() || acquisition.isNotePresent())
.andThen(new ShootPasserCommand(1.5)),
new AcquisitionRunCommand()),
Copy link
Contributor

Choose a reason for hiding this comment

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

I would also use the unless decorator here to make the code standard.

Comment on lines +28 to +32
public ShootPasserCommand(double shootDelay, boolean doShootDelay) {
this.addRequirements(scoring);
this.shootDelay += shootDelay;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think there is a need for this constructor since the programmer can choose not to delay shooting by using the second constructor and delay shooting with the first constructor.

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.

Create Midline Notes Auton
2 participants