From: iefomit Date: Mon, 16 Feb 2026 22:15:00 +0000 (-0800) Subject: added robotid to smartdashboard X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=9f160bc47fa855eaf1b79d18ef170120891c1b0d;p=FRC2026.git added robotid to smartdashboard --- diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 0c8b25d..866abcc 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -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 - } - ); + }); } } - -