]> git.taranathan.com Git - FRC2026.git/commitdiff
Fix deprecation.
authorArnav495 <arnieincyberland@gmail.com>
Wed, 25 Feb 2026 01:09:44 +0000 (17:09 -0800)
committerArnav495 <arnieincyberland@gmail.com>
Wed, 25 Feb 2026 01:09:44 +0000 (17:09 -0800)
src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java

index fd5e459b08d7b19bc223c9e16b421e195edfab39..cd4910529dbacde9b49fff3cea62053673312dcb 100644 (file)
@@ -16,12 +16,12 @@ import frc.robot.commands.gpm.ClimbDriveCommand;
 import frc.robot.commands.gpm.ReverseMotors;
 import frc.robot.constants.Constants;
 import frc.robot.subsystems.Climb.LinearClimb;
+import frc.robot.subsystems.Intake.Intake;
 import frc.robot.subsystems.drivetrain.Drivetrain;
+import frc.robot.subsystems.hood.Hood;
 import frc.robot.subsystems.shooter.Shooter;
 import frc.robot.subsystems.spindexer.Spindexer;
 import frc.robot.subsystems.turret.Turret;
-import frc.robot.subsystems.hood.Hood;
-import frc.robot.subsystems.Intake.Intake;
 import lib.controllers.PS5Controller;
 import lib.controllers.PS5Controller.PS5Axis;
 import lib.controllers.PS5Controller.PS5Button;
@@ -83,7 +83,7 @@ public class PS5ControllerDriverConfig extends BaseDriverConfig {
         if (intake != null && spindexer != null && shooter != null){
             driver.get(PS5Button.CIRCLE).onTrue(new InstantCommand(()->{
                 reverseMotors = new ReverseMotors(intake, spindexer);
-                reverseMotors.schedule();
+                               CommandScheduler.getInstance().schedule(reverseMotors);
             })
             ).onFalse(new InstantCommand(()->{
                 if(reverseMotors != null){