]> git.taranathan.com Git - FRC2026.git/commitdiff
revert for main
authoriefomit <timofei.stem@gmail.com>
Mon, 16 Feb 2026 23:05:44 +0000 (15:05 -0800)
committeriefomit <timofei.stem@gmail.com>
Mon, 16 Feb 2026 23:05:44 +0000 (15:05 -0800)
src/main/java/frc/robot/RobotContainer.java
src/main/java/frc/robot/constants/Climb/ClimbConstants.java
src/main/java/frc/robot/subsystems/Climb/LinearClimb.java

index fc28b4dd40525e1c93814aae03a6db14285a85b6..be86b88a3c7c5ec039da41edc6003b602475e917 100644 (file)
@@ -79,7 +79,7 @@ public class RobotContainer {
       default:
 
       case WaffleHouse:
-      
+
       case SwerveCompetition: // AKA "Vantage"
 
       case BetaBot: // AKA "Pancake"
@@ -95,31 +95,31 @@ public class RobotContainer {
       case PrimeJr:
 
       case Vertigo: // AKA "French Toast"
-        // drive = new Drivetrain(vision, new GyroIOPigeon2());
-        // driver = new PS5ControllerDriverConfig(drive);
-        // operator = new Operator(drive);
+        drive = new Drivetrain(vision, new GyroIOPigeon2());
+        driver = new PS5ControllerDriverConfig(drive);
+        operator = new Operator(drive);
 
         // Detected objects need access to the drivetrain
-        // DetectedObject.setDrive(drive);
-        
+        DetectedObject.setDrive(drive);
+
         // SignalLogger.start();
 
-        // driver.configureControls();
-        // operator.configureControls();
-        
-        // initializeAutoBuilder();
-        // registerCommands();
-        // PathGroupLoader.loadPathGroups();
-        // // Load the auto command
-        // try {
-        //   PathPlannerAuto.getPathGroupFromAutoFile("Command Name");
-        //   auto = new PathPlannerAuto("Path Name");
-        // } catch (IOException | ParseException e) {
-        //   e.printStackTrace();
-        // }
-        // drive.setDefaultCommand(new DefaultDriveCommand(drive, driver));
+        driver.configureControls();
+        operator.configureControls();
+
+        initializeAutoBuilder();
+        registerCommands();
+        PathGroupLoader.loadPathGroups();
+        // Load the auto command
+        try {
+        PathPlannerAuto.getPathGroupFromAutoFile("Command Name");
+        auto = new PathPlannerAuto("Path Name");
+        } catch (IOException | ParseException e) {
+        e.printStackTrace();
+        }
+        drive.setDefaultCommand(new DefaultDriveCommand(drive, driver));
         break;
-      }
+    }
 
     // This is really annoying so it's disabled
     DriverStation.silenceJoystickConnectionWarning(true);
@@ -140,7 +140,6 @@ public class RobotContainer {
       drive.setVisionEnabled(enabled);
   }
 
-
   public void initializeAutoBuilder() {
     AutoBuilder.configure(
         () -> drive.getPose(),
@@ -177,15 +176,14 @@ public class RobotContainer {
   }
 
   public boolean brownout() {
-    if(RobotController.getBatteryVoltage() < 6.0) {
+    if (RobotController.getBatteryVoltage() < 6.0) {
       return true;
-    }
-    else {
+    } else {
       return false;
     }
   }
 
-// Autos 
+  // Autos
 
   /**
    * Initialize the SendableChooser on the SmartDashbboard.
@@ -204,6 +202,7 @@ public class RobotContainer {
 
   /**
    * Gets the auto command from SmartDashboard
+   * 
    * @return
    */
   public Command getAutoCommand() {
@@ -213,16 +212,14 @@ public class RobotContainer {
     return autoSelected;
   }
 
-  public void logComponents(){
-    if(!Constants.LOG_MECHANISMS) return;
-    
+  public void logComponents() {
+    if (!Constants.LOG_MECHANISMS)
+      return;
+
     Logger.recordOutput(
-      "ComponentPoses", 
-      new Pose3d[] {
+        "ComponentPoses",
+        new Pose3d[] {
         // Subsystem Pose3ds
-      }
-    );
+        });
   }
 }
-
-
index acfdf77b47996d1877bd74cd5f58470399df86fd..853a6c5a44fbb941d6c60f436d8ed2b5038305d4 100644 (file)
@@ -1,7 +1,7 @@
 package frc.robot.constants.Climb;
 
 public class ClimbConstants {
-    
+
     // CHANGE LATER
     public final static double CLIMB_GEAR_RATIO = 9.0 / 1 * 5.0 / 1;
     public final static double MAX_VELOCITY = 1;
index ba99c2da84bc1e53b0f268b22b62e0c9ecefd346..3edc773b305ac82443973802fc3f9e875a19ac62 100644 (file)
@@ -122,4 +122,4 @@ public class LinearClimb extends SubsystemBase {
         counter = 0;
         setCurrentLimits(ClimbConstants.STRONG_CURRENT);
     }
-}
\ No newline at end of file
+}