]> git.taranathan.com Git - FRC2026.git/commitdiff
Update Shooter.java
authormixxlto <maxtan0626@gmail.com>
Fri, 13 Feb 2026 03:47:47 +0000 (19:47 -0800)
committermixxlto <maxtan0626@gmail.com>
Fri, 13 Feb 2026 03:47:47 +0000 (19:47 -0800)
src/main/java/frc/robot/subsystems/shooter/Shooter.java

index 6eb011e6c4e393c9c0ce4410cdc42f4d87223d37..1af09981b40be948c4044632a5951979d20da27a 100644 (file)
@@ -57,8 +57,6 @@ public class Shooter extends SubsystemBase implements ShooterIO {
 
         motorLeft.getConfigurator().apply(config);
         motorRight.getConfigurator().apply(config);
-        
-        motorRight.setControl(new Follower(motorLeft.getDeviceID(), MotorAlignmentValue.Opposed));
 
         motorRight.getConfigurator().apply(
             new MotorOutputConfigs().withNeutralMode(NeutralModeValue.Coast)
@@ -68,6 +66,8 @@ public class Shooter extends SubsystemBase implements ShooterIO {
             new MotorOutputConfigs().withNeutralMode(NeutralModeValue.Coast)
         );
 
+        motorRight.setControl(new Follower(motorLeft.getDeviceID(), MotorAlignmentValue.Opposed));
+
         SmartDashboard.putData("Turn on shooter", new InstantCommand(() -> setShooter(ShooterConstants.SHOOTER_VELOCITY)));
         SmartDashboard.putData("Turn off Shooter", new InstantCommand(() -> setShooter(0)));
     }