Skip to content

Commit

Permalink
fixing amp shot and fixing shooter auto
Browse files Browse the repository at this point in the history
  • Loading branch information
TheExoneratedManiac committed Mar 17, 2024
1 parent 4f78364 commit f9e6222
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public void spin() {
}

public void ampShot() {
rSpark.setVoltage(2.2);
lSpark.setVoltage(2.2);
rSpark.set(0.2);
lSpark.set(0.2);
}

public void stopSpin() {
Expand All @@ -53,7 +53,7 @@ public Command manualShootCommand() {
public Command autoShootCommand1() {
System.out.println("shoot commanded");
// return run(this::spin).finallyDo(interrupted -> stopSpin());
return run(this::spin).withTimeout(3).finallyDo(interrupted -> stopSpin());
return run(this::spin).withTimeout(4).finallyDo(interrupted -> stopSpin());
}

public Command autoShootCommand2() {
Expand Down

0 comments on commit f9e6222

Please sign in to comment.