From cfc66005f1dbaa51992ef13a343a8538551c8ceb Mon Sep 17 00:00:00 2001 From: Gavin P Date: Tue, 7 Jan 2025 15:50:25 -0800 Subject: [PATCH] fixed typo --- src/main/java/frc/robot/RobotContainer.java | 4 ++-- .../frc/robot/commands/{RestGyro.java => ResetGyro.java} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/frc/robot/commands/{RestGyro.java => ResetGyro.java} (90%) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 2b3ddb4..dac8511 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -13,7 +13,7 @@ import edu.wpi.first.wpilibj2.command.WaitCommand; import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import edu.wpi.first.wpilibj2.command.button.Trigger; -import frc.robot.commands.RestGyro; +import frc.robot.commands.ResetGyro; import frc.robot.constants.SWERVE; import frc.robot.constants.USB; import frc.robot.generated.TunerConstants; @@ -60,7 +60,7 @@ public RobotContainer() { private void initSmartDashboard() { - SmartDashboard.putData("RestGyro", new RestGyro(m_swerveDrive)); + SmartDashboard.putData("ResetGyro", new ResetGyro(m_swerveDrive)); } private void initializeSubSystems() { diff --git a/src/main/java/frc/robot/commands/RestGyro.java b/src/main/java/frc/robot/commands/ResetGyro.java similarity index 90% rename from src/main/java/frc/robot/commands/RestGyro.java rename to src/main/java/frc/robot/commands/ResetGyro.java index defec76..af0c5d4 100644 --- a/src/main/java/frc/robot/commands/RestGyro.java +++ b/src/main/java/frc/robot/commands/ResetGyro.java @@ -9,11 +9,11 @@ import frc.robot.subsystems.Controls; /* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */ -public class RestGyro extends Command { - /** Creates a new RestGyro. */ +public class ResetGyro extends Command { + /** Creates a new ResetGyro. */ private final CommandSwerveDrivetrain m_swerveDrive; - public RestGyro(CommandSwerveDrivetrain swervedrive) { + public ResetGyro(CommandSwerveDrivetrain swervedrive) { m_swerveDrive = swervedrive; // Use addRequirements() here to declare subsystem dependencies.