Skip to content

Commit

Permalink
post revere changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheExoneratedManiac committed Mar 26, 2024
1 parent 28d7135 commit 127e8f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/leds/LEDSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Command blinkGreen() {
}

public Command blinkPurple() {
return runAnimation(Animation.solid(Color.kPurple).blink(Seconds.of(1)));
return runAnimation(Animation.solid(Color.kPurple).blink(Seconds.of(.1)));
}

public Command blinkYellow() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public boolean atSpeakerSpeed() {
public boolean atAmpSpeed() {
boolean rightAtSpeed;
boolean leftAtSpeed;
if (rSparkEncoder.getVelocity() > Constants.ShooterConstants.ampSpeed * .9 && rSparkEncoder.getVelocity() < Constants.ShooterConstants.ampSpeed*1.1)
if (rSparkEncoder.getVelocity() > Constants.ShooterConstants.ampSpeed * .8 && rSparkEncoder.getVelocity() < Constants.ShooterConstants.ampSpeed*1.2)
rightAtSpeed = true;
else rightAtSpeed = false;
if (lSparkEncoder.getVelocity() > Constants.ShooterConstants.ampSpeed * .9 && lSparkEncoder.getVelocity() < Constants.ShooterConstants.ampSpeed*1.1) // 1040.6 is amp speed
if (lSparkEncoder.getVelocity() > Constants.ShooterConstants.ampSpeed * .8 && lSparkEncoder.getVelocity() < Constants.ShooterConstants.ampSpeed*1.2) // 1040.6 is amp speed
leftAtSpeed = true;
else leftAtSpeed = false;
return rightAtSpeed && leftAtSpeed;
Expand Down Expand Up @@ -122,7 +122,7 @@ public Command manualShootCommand() {
public Command autoShootCommand1() {
System.out.println("shoot commanded");
// return run(this::spin).finallyDo(interrupted -> stopSpin());
return run(this::spin).until(this::atSpeakerSpeed).withTimeout(2);
return run(this::spin).until(this::atSpeakerSpeed).withTimeout(3);
}

public Command reverseShooterCommand() {
Expand Down

0 comments on commit 127e8f7

Please sign in to comment.