Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinskycastle committed Jan 7, 2025
1 parent c1fc748 commit cfc6600
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit cfc6600

Please sign in to comment.