Skip to content

Commit

Permalink
Tweaks to layout/comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwaldron committed Feb 29, 2020
1 parent 91d09bb commit a0337cf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/frc/robot/controller/Sequences.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static Sequence stopLoader() {
/**
* As the shooter takes time to spin up, enable spinning
* it up in advance.
* Touch the startShooting() sequences to halt.
* Use the button mapped for near/far shooting to halt.
*/
public static Sequence spinUpShooter() {
Sequence seq = new Sequence("spin up shooter");
Expand All @@ -200,6 +200,7 @@ public static Sequence spinUpShooter() {

public static Sequence startShooting(boolean closeToGoal) {
Sequence seq = new Sequence("start shooting");
// Shooter wheel may already be up to speed.
seq.add().setShooterRPM(SHOOTER_TARGET_SPEED_RPM);
if (closeToGoal) {
// Shooting from just below the goal straight up.
Expand Down Expand Up @@ -265,7 +266,10 @@ public static Sequence visionAim(){
// Wait for all of the balls to leave.
seq.add().waitForBalls(0);
// Turn off everything.
seq.add().setShooterRPM(0).setLoaderPassthroughMotorOutput(0).setLoaderSpinnerMotorRPM(0).blockShooter();
seq.add().setShooterRPM(0)
.setLoaderPassthroughMotorOutput(0)
.setLoaderSpinnerMotorRPM(0)
.blockShooter();
return seq;
}

Expand Down Expand Up @@ -348,6 +352,7 @@ public static Sequence toggleBuddyClimb() {
startLoader(),
stopLoader(),
toggleBuddyClimb(),
toggleDriveClimbModes(),
visionAim(),
};
}

0 comments on commit a0337cf

Please sign in to comment.