From 38f91920ab20e963a99814a3974a8c7f79a1c1f6 Mon Sep 17 00:00:00 2001 From: michael-lesirge <100492377+michael-lesirge@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:46:23 -0800 Subject: [PATCH] rename to testing Auto --- src/main/java/frc/robot/RobotContainer.java | 6 +++--- src/main/java/frc/robot/commands/Autos.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index bfca2b3..2f0b0d0 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -62,7 +62,7 @@ public class RobotContainer { /** The container for the robot. Contains subsystems, OI devices, and commands. */ public RobotContainer() { - autoChooser.addOption("Example Auto", Autos.exampleAuto(drivetrain)); + autoChooser.addOption("Testing Auto", Autos.testingAuto(drivetrain)); setUpDriveController(); configureBindings(); @@ -74,8 +74,8 @@ public void setUpDriveController() { final HIDType genericHIDType = genericHID.getType(); SmartDashboard.putString("Drive Controller", genericHIDType.toString()); - SmartDashboard.putString("Bot Name", Constants.currentBot.name()); - + SmartDashboard.putString("Bot Name", Constants.currentBot.toString()); + if (genericHIDType.equals(GenericHID.HIDType.kHIDJoystick)) { final CommandJoystick driverJoystick = new CommandJoystick(genericHID.getPort()); SwerveDriveJoystickControl control = new SwerveDriveJoystickControl(drivetrain, driverJoystick); diff --git a/src/main/java/frc/robot/commands/Autos.java b/src/main/java/frc/robot/commands/Autos.java index 350b6cd..0e1ade2 100644 --- a/src/main/java/frc/robot/commands/Autos.java +++ b/src/main/java/frc/robot/commands/Autos.java @@ -7,7 +7,7 @@ public final class Autos { /** Example static factory for an autonomous command. */ - public static Command exampleAuto(SwerveDrivetrain drivetrain) { + public static Command testingAuto(SwerveDrivetrain drivetrain) { return Commands.sequence( new AutoDriveTo(drivetrain, new Translation2d(1, 0)) // new WaitCommand(1),