SwerveBaseTemplate
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
SwerveBaseTemplate
SwerveBaseTemplate
/
frc.robot.commands
/
PadDrive
Pad
Drive
public
class
PadDrive
extends
Command
Command to control the robot's swerve drive using a Logitech gaming pad.
Members
Constructors
Pad
Drive
Link copied to clipboard
public
void
PadDrive
(
GamingController
pad
,
boolean isFieldOriented
)
Constructs a new PadDrive command.
Functions
execute
Link copied to clipboard
public
void
execute
(
)
Called every time the scheduler runs while the command is scheduled.
is
Finished
Link copied to clipboard
public
boolean
isFinished
(
)
Returns true when the command should end.
position
Set
Link copied to clipboard
public
static
Pair
<
Double
,
Double
>
positionSet
(
GamingController
pad
)
Sets the position based on the input from the Logitech gaming pad.