]> git.taranathan.com Git - FRC2026.git/commitdiff
Merge branch 'main' into power-distribution
authorWesley28w <wesleycwong@gmail.com>
Mon, 20 Apr 2026 12:43:23 +0000 (05:43 -0700)
committerWesley28w <wesleycwong@gmail.com>
Mon, 20 Apr 2026 12:43:23 +0000 (05:43 -0700)
1  2 
src/main/java/frc/robot/RobotContainer.java
src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java
src/main/java/frc/robot/subsystems/Intake/Intake.java
src/main/java/frc/robot/subsystems/shooter/Shooter.java
src/main/java/frc/robot/subsystems/spindexer/Spindexer.java
src/main/java/frc/robot/subsystems/turret/Turret.java
src/main/java/frc/robot/subsystems/turret/TurretConstants.java

index 71933a1d8c53aceee0edb563d62cc754a2268d79,29bef8a6148c87b78e59b80b907a2660ca5dbd46..7263be7b7d5f28cddef623cfde61d83669550c90
@@@ -11,8 -11,6 +11,7 @@@ import com.pathplanner.lib.commands.Pat
  
  import edu.wpi.first.math.geometry.Pose3d;
  import edu.wpi.first.wpilibj.DriverStation;
- import edu.wpi.first.wpilibj.Timer;
 +import edu.wpi.first.wpilibj.PS5Controller;
  import edu.wpi.first.wpilibj.RobotController;
  import edu.wpi.first.wpilibj.livewindow.LiveWindow;
  import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
@@@ -21,10 -19,10 +20,9 @@@ import edu.wpi.first.wpilibj2.command.C
  import edu.wpi.first.wpilibj2.command.CommandScheduler;
  import edu.wpi.first.wpilibj2.command.InstantCommand;
  import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
+ import frc.robot.commands.DoNothing;
  import frc.robot.commands.LogCommand;
  import frc.robot.commands.drive_comm.DefaultDriveCommand;
- import frc.robot.commands.gpm.AutoShootCommand;
- import frc.robot.commands.gpm.ClimbDriveCommand;
 -import frc.robot.commands.gpm.BrownOutControl;
  import frc.robot.commands.gpm.IntakeMovementCommand;
  import frc.robot.commands.gpm.LockedShoot;
  import frc.robot.commands.gpm.RunSpindexer;
@@@ -36,10 -34,8 +34,9 @@@ import frc.robot.constants.VisionConsta
  import frc.robot.controls.BaseDriverConfig;
  import frc.robot.controls.Operator;
  import frc.robot.controls.PS5ControllerDriverConfig;
- import frc.robot.subsystems.Climb.LinearClimb;
  import frc.robot.subsystems.Intake.Intake;
  import frc.robot.subsystems.LED.LED;
 +import frc.robot.subsystems.PowerControl.EMABreaker;
  import frc.robot.subsystems.drivetrain.Drivetrain;
  import frc.robot.subsystems.drivetrain.GyroIOPigeon2;
  import frc.robot.subsystems.hood.Hood;
@@@ -75,14 -72,7 +73,12 @@@ public class RobotContainer 
    // Controllers are defined here
    private BaseDriverConfig driver = null;
    private Operator operator = null;
-   private LinearClimb linearClimb = null;
-   private LED led = null;
  
 +  private EMABreaker breaker = null;
 +
 +  // TODO: move to correct robot and put the correct port?
 +  private PS5Controller ps5 = new PS5Controller(0);
 +
    // auto Command selection
    private final SendableChooser<Command> autoChooser = new SendableChooser<>();
  
          if (turret != null) {
            turret.setDefaultCommand(new Superstructure(turret, drive, hood, shooter, spindexer));
          }
 -
 -        if (shooter != null && spindexer != null && turret != null && intake != null && hood != null && drive != null) {
 -          CommandScheduler.getInstance().schedule(new BrownOutControl(shooter, spindexer, turret, intake, hood, drive));
 -        }
          
-         drive.setDefaultCommand(new DefaultDriveCommand(drive, driver));
+         if (drive != null && driver != null) {
+           drive.setDefaultCommand(new DefaultDriveCommand(drive, driver));
+         }
          break;
      }
  
index 366a215f52a4fb01d71e853ac2c6c8603868b532,bdd9eb2c6f670ac7e3f32f1815c18cbde31435e4..749af85cb264a5e9d0895367de344d12567d381a
@@@ -24,9 -24,11 +24,10 @@@ public class TurretConstants 
  
        public static final double EXTRAPOLATION_TIME_CONSTANT = 0.06;
  
-       public static final double FEEDFORWARD_KV = 0.06;
+       public static final double FEEDFORWARD_KV = 0.02
+     ;
  
 -    public static final double NORMAL_CURRENT_LIMIT = 40.0; // A
 -    public static final double CALIBRATION_CURRENT_LIMIT = 10.0; // A
 -    public static final double CALIBRATION_CURRENT_THRESHOLD = 9.0; // A
 +    public static final double STATOR_CURRENT_LIMIT = 40.0; // A
 +    public static final double SUPPLY_CURRENT_LIMIT = 40.0; // A
  
  }