]> git.taranathan.com Git - FRC2026.git/commitdiff
added robotid to smartdashboard
authoriefomit <timofei.stem@gmail.com>
Mon, 16 Feb 2026 22:15:00 +0000 (14:15 -0800)
committeriefomit <timofei.stem@gmail.com>
Mon, 16 Feb 2026 22:15:00 +0000 (14:15 -0800)
src/main/java/frc/robot/RobotContainer.java

index 0c8b25d71b910c6d842bf5e61aeee19c9ef38153..866abcc829fa0b64aeac189bab6616c1d004a1a2 100644 (file)
@@ -87,7 +87,7 @@ public class RobotContainer {
       case WaffleHouse: // AKA Betabot
         turret = new Turret();
         shooter = new Shooter();
-        //hood = new Hood();
+        // hood = new Hood();
 
       case SwerveCompetition: // AKA "Vantage"
 
@@ -106,11 +106,11 @@ public class RobotContainer {
 
         // Detected objects need access to the drivetrain
         DetectedObject.setDrive(drive);
-        
+
         // SignalLogger.start();
         driver.configureControls();
         operator.configureControls();
-        
+
         initializeAutoBuilder();
         registerCommands();
         PathGroupLoader.loadPathGroups();
@@ -123,11 +123,13 @@ public class RobotContainer {
         }
         drive.setDefaultCommand(new DefaultDriveCommand(drive, driver));
         break;
-      }
+    }
 
     // This is really annoying so it's disabled
     DriverStation.silenceJoystickConnectionWarning(true);
 
+    SmartDashboard.putString("RobotId", RobotId.getRobotId().name());
+
     // TODO: verify this claim.
     // LiveWindow is causing periodic loop overruns
     LiveWindow.disableAllTelemetry();
@@ -144,7 +146,6 @@ public class RobotContainer {
       drive.setVisionEnabled(enabled);
   }
 
-
   public void initializeAutoBuilder() {
     AutoBuilder.configure(
         () -> drive.getPose(),
@@ -181,28 +182,25 @@ public class RobotContainer {
   }
 
   public boolean brownout() {
-    if(RobotController.getBatteryVoltage() < 6.0) {
+    if (RobotController.getBatteryVoltage() < 6.0) {
       return true;
-    }
-    else {
+    } else {
       return false;
     }
   }
 
-  public Command getAutoCommand(){
+  public Command getAutoCommand() {
     return auto;
   }
 
-  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
-      }
-    );
+        });
   }
 }
-
-