PadDrive

public final class PadDrive extends Command

Command to control the robot's swerve drive using a Logitech gaming pad.

Constructors

Link copied to clipboard
public PadDrive PadDrive(XboxController pad)

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard
public final static PadDrive.Companion Companion
Link copied to clipboard
public final Boolean isFinished

Functions

Link copied to clipboard
public Unit execute()

Called every time the scheduler runs while the command is scheduled. This method retrieves the current position from the gaming pad, calculates the rotation, logs the joystick values, and sets the drive speeds for the swerve subsystem.

Link copied to clipboard

Returns true when the command should end.