Class LockWheelsCommand

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.drivetrain.LockWheelsCommand
All Implemented Interfaces:
Sendable

public class LockWheelsCommand extends Command
A command that locks the wheels of the swerve drive to force it to remain stationary.
  • Constructor Details

    • LockWheelsCommand

      public LockWheelsCommand(Drivetrain drivetrain)
      Creates a new LockWheelsState.
      Parameters:
      drivetrain - Drivetrain to lock the wheels of.
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class Command
    • execute

      public void execute()
      Overrides:
      execute in class Command
    • end

      public void end(boolean interrupted)
      Overrides:
      end in class Command
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class Command