]> git.taranathan.com Git - FRC2026.git/commitdiff
a
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Wed, 21 Jan 2026 00:51:39 +0000 (16:51 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Wed, 21 Jan 2026 00:51:39 +0000 (16:51 -0800)
src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java
src/main/java/frc/robot/subsystems/shooter/Shooter.java

index af0afb82b98c3863cbba18dfcc53b4c3c2f07cd2..1a8b8e0cad80b2afe16ce5dc9d20524b10b1c39a 100644 (file)
@@ -65,8 +65,16 @@ public class PS5ControllerDriverConfig extends BaseDriverConfig {
             interrupted->getDrivetrain().setStateDeadband(true),
             ()->false, getDrivetrain()).withTimeout(2));
 
-        driver.get(PS5Button.CIRCLE).onTrue(new InstantCommand(() -> shooter.setFeeder(ShooterConstants.FEEDER_RUN_POWER))).onFalse(new InstantCommand(() -> shooter.setFeeder(0)));
-        driver.get(PS5Button.TRIANGLE).onTrue(new InstantCommand(() -> shooter.setShooter(ShooterConstants.SHOOTER_VELOCITY))).onFalse(new InstantCommand(() -> shooter.setShooter(0)));
+        driver.get(PS5Button.LB).onTrue(
+            new InstantCommand(() -> {
+                shooter.setFeeder(ShooterConstants.FEEDER_RUN_POWER);
+                shooter.setShooter(ShooterConstants.SHOOTER_VELOCITY);
+            })).onFalse(
+                new InstantCommand(() -> {
+                        shooter.setFeeder(0);
+                        shooter.setShooter(0);
+                    }));
+        //driver.get(PS5Button.TRIANGLE).onTrue(new InstantCommand(() -> shooter.setShooter(ShooterConstants.SHOOTER_VELOCITY))).onFalse(new InstantCommand(() -> shooter.setShooter(0)));
         
         driver.get(PS5Button.SQUARE).onTrue(
             new InstantCommand(()->{
index 4ff237904c095674b4b4932df6042195a6531a21..1b5919ef992f00ee13e9545c544c1226c8731547 100644 (file)
@@ -29,8 +29,8 @@ import frc.robot.constants.IdConstants;
 
 public class Shooter  {
     
-    private TalonFX shooterMotorLeft = new TalonFX(IdConstants.SHOOTER_LEFT_ID, Constants.SUBSYSTEM_CANIVORE_CAN);
-    private TalonFX shooterMotorRight = new TalonFX(IdConstants.SHOOTER_RIGHT_ID, Constants.SUBSYSTEM_CANIVORE_CAN);
+    private TalonFX shooterMotorLeft = new TalonFX(IdConstants.SHOOTER_LEFT_ID, Constants.RIO_CAN);
+    private TalonFX shooterMotorRight = new TalonFX(IdConstants.SHOOTER_RIGHT_ID, Constants.RIO_CAN);
 
     private TalonFX feederMotor = new TalonFX(IdConstants.FEEDER_ID, Constants.RIO_CAN);