From: Arnav495 Date: Wed, 25 Feb 2026 01:09:44 +0000 (-0800) Subject: Fix deprecation. X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=66a23d3868448c9e398eb4eda7bd11de8d3ecf07;p=FRC2026.git Fix deprecation. --- diff --git a/src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java b/src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java index fd5e459..cd49105 100644 --- a/src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java +++ b/src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java @@ -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){