Skip to content

Commit

Permalink
tuned amp shot
Browse files Browse the repository at this point in the history
  • Loading branch information
trixydevs committed Mar 9, 2024
1 parent f026154 commit 4292a8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ private void configureBindings() {
//this sequential command group SHOULD (not tested) 1) start rev'ing up the shooter 2) drive backwards 3) for shoter to rev, then shoot the note 4) wait for the shot to leave the robot
SequentialCommandGroup scoreAmp = new SequentialCommandGroup(
new InstantCommand(()->shooter.shootSameRPS(ShooterConstants.AMP_RPS), shooter),
new DriveTimeCommand(-0.3, 0, 0, 0.2, driveTrain),
new WaitUntil(shooter::validShot),
new DriveTimeCommand(0.3, 0, 0, 0.3, driveTrain),
new WaitUntil(()->(shooter.validShot() && driveTrain.getChassisSpeeds().vxMetersPerSecond == 0)),
new InstantCommand(()->indexer.set(IndexerConstants.INDEXER_AMP_SPEED), indexer),
new WaitCommand(0.2)
);
Expand Down Expand Up @@ -478,4 +478,4 @@ public void disabledInit() {
new InstantCommand(angleShooterSubsystem::stop, angleShooterSubsystem);
}
}
}
}
1 change: 1 addition & 0 deletions src/main/java/frc/robot/commands/DriveTimeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void execute() {
public void end(boolean interrupted) {
timer.reset();
timer.stop();
drivetrain.stop();
}

// Returns true when the command should end.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/settings/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public static final class ShooterConstants{

public static final double LONG_SHOOTING_RPS = 120;
public static final double SHORT_SHOOTING_RPS = 80;
public static final double AMP_RPS = 8.5;
public static final double AMP_RPS = 9.5;
public static final double SUBWOOFER_RPS = SHORT_SHOOTING_RPS;

//the PID values used on the PID loop on the motor controller that control the position of the shooter angle
Expand Down

0 comments on commit 4292a8f

Please sign in to comment.