-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
public MidlineNoteAutonAmp(Optional<Alliance> alliance) { | ||
super(alliance); | ||
|
||
this.setInitialPose(Trajectories.getFromPosition1ToAmpTrajectory()); |
There was a problem hiding this comment.
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.
followPathCommand(Paths.pathFromTopNoteTo2ndTopNote) | ||
.until(acquisition::isNotePresent), | ||
new ScoringElevatorPositionCommand(ElevatorSetpoints.Passer, FinishActions.NoDisable) | ||
.onlyIf(() -> storage.noteExitingStorage() || acquisition.isNotePresent()) | ||
.andThen(new ShootPasserCommand(1.5)), | ||
new AcquisitionRunCommand()), |
There was a problem hiding this comment.
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.
public ShootPasserCommand(double shootDelay, boolean doShootDelay) { | ||
this.addRequirements(scoring); | ||
this.shootDelay += shootDelay; | ||
} | ||
|
There was a problem hiding this comment.
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.
Pull Request
Issue Number
Comments