Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
refactor(swerve): Rename drive command.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Feb 4, 2024
1 parent 267f58f commit 041824e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 @@ -10,7 +10,7 @@
import frc.robot.lights.Lights;
import frc.robot.odometry.Odometry;
import frc.robot.shooter.Shooter;
import frc.robot.swerve.Drive;
import frc.robot.swerve.DriveCommand;
import frc.robot.swerve.Swerve;
import frc.robot.vision.Vision;

Expand Down Expand Up @@ -60,7 +60,7 @@ private void initializeTelemetry() {

/** Configures operator controller bindings. */
private void configureBindings() {
swerve.setDefaultCommand(new Drive(driverController));
swerve.setDefaultCommand(new DriveCommand(driverController));

driverController.y().onTrue(odometry.tare());
driverController.x().whileTrue(swerve.cross());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import frc.robot.swerve.DriveRequest.TranslationMode;

/** Drives the swerve using driver input. */
public class Drive extends Command {
public class DriveCommand extends Command {
/* Swerve subsystem. */
private final Swerve swerve;
/* Odometry subsystem. */
Expand Down Expand Up @@ -57,7 +57,7 @@ public class Drive extends Command {
/** Heading setpoint. */
private Rotation2d headingGoal = new Rotation2d();

public Drive(CommandXboxController driverController) {
public DriveCommand(CommandXboxController driverController) {
swerve = Swerve.getInstance();
odometry = Odometry.getInstance();

Expand Down

0 comments on commit 041824e

Please sign in to comment.