Class 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 a 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
    • TeleopSwerve

      public TeleopSwerve(Swerve swerveDrive, CommandXboxController controller, boolean fieldRelative, boolean openLoop, double speedMultiplier)
      Creates a 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
      speedMultiplier - Speed multiplier to increase or decrease speed
  • Method Details

    • execute

      public void execute()
      Overrides:
      execute in class Command