Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
end of load-in
Browse files Browse the repository at this point in the history
  • Loading branch information
roboblazers7617 committed Apr 6, 2024
1 parent 72f3b36 commit aa53363
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public double elevator_target(){
}

public static final int AUTO_SHOOT_SPEED = 6000;
public static final int VARIABLE_DISTANCE_SHOT = 6000;
public static final int VARIABLE_DISTANCE_SHOT = 6500;
}

public static class ArmConstants {
Expand Down Expand Up @@ -97,7 +97,7 @@ public static class ArmConstants {
public static final double FLOOR_PICKUP = 3.75;
public static final double STOW_ANGLE = 20.0;
/** the mininum angle the arm can be where the elevator can pass over the bumper */
public static final double MIN_ABOVE_PASS_ANGLE = 20;
public static final double MIN_ABOVE_PASS_ANGLE = 18.5;

// Constants for extended state
public static final double EXTENDED_KS = 0.17; //these values are based on the test arm
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ private void configureOperatorBindings(){
operatorControllerCommands.b().and(() -> !isClimbMode).onTrue(MechanismCommands.IntakeSource(driverController, operatorController, arm, head));

operatorControllerCommands.leftTrigger().onTrue(MechanismCommands.PrepareShoot(operatorController, arm, head, ShootingPosition.AMP));
operatorControllerCommands.leftBumper().onTrue(MechanismCommands.PrepareShoot(operatorController, arm, head, drivetrain::getDistanceToSpeaker));

operatorControllerCommands.rightTrigger().onTrue(MechanismCommands.PrepareShoot(operatorController, arm, head, ShootingPosition.PODIUM)).onFalse(MechanismCommands.Shoot(driverController, operatorController, arm, head));
operatorControllerCommands.leftBumper().onTrue(MechanismCommands.Shoot(driverController, operatorController, arm, head));

operatorControllerCommands.rightTrigger().onTrue(MechanismCommands.PrepareShoot(operatorController, arm, head, drivetrain::getDistanceToSpeaker))
.onFalse(MechanismCommands.PrepareShoot(operatorController, arm, head, drivetrain::getDistanceToSpeaker).andThen(MechanismCommands.Shoot(arm, head)));

operatorControllerCommands.rightBumper().onTrue(MechanismCommands.PrepareShoot(operatorController, arm, head, ShootingPosition.SUBWOOFER)).onFalse(MechanismCommands.Shoot(driverController, operatorController, arm, head));

operatorControllerCommands.povLeft().onTrue(head.StopIntake().andThen(head.SpinDownShooter()));
operatorControllerCommands.povRight().onTrue(MechanismCommands.Shoot(driverController, operatorController, arm, head));
operatorControllerCommands.povRight().onTrue(MechanismCommands.PrepareShoot(operatorController, arm, head, ShootingPosition.PODIUM)).onFalse(MechanismCommands.Shoot(driverController, operatorController, arm, head));


operatorControllerCommands.povUp().onTrue(Commands.runOnce(() -> climber.setSpeed(ClimberConstants.CLIMB_RATE, ClimberConstants.CLIMB_RATE), climber)).onFalse(Commands.runOnce(() -> climber.setSpeed(0, 0), climber));
Expand Down

0 comments on commit aa53363

Please sign in to comment.