Class TeleopSwerve

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

public class TeleopSwerve extends Command
Creates an command for driving the swerve drive during tele-op
  • Constructor Details

    • TeleopSwerve

      public TeleopSwerve(Swerve swerveDrive, CommandXboxController controller, boolean fieldRelative, boolean openLoop)
      Creates an command for driving the swerve drive during tele-op
      Parameters:
      swerveDrive - The instance of the swerve drive subsystem
      fieldRelative - Whether the movement is relative to the field or absolute
      openLoop - Open or closed loop system
  • Method Details

    • execute

      public void execute()
      Overrides:
      execute in class Command