Package frc.robot.commands.drive
Class TeleopSwerve
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.drive.TeleopSwerve
- All Implemented Interfaces:
Sendable
Creates an command for driving the swerve drive during tele-op
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior -
Field Summary
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
ConstructorsConstructorDescriptionTeleopSwerve(Swerve swerveDrive, CommandXboxController controller, boolean fieldRelative, boolean openLoop) Creates an command for driving the swerve drive during tele-op -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, end, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
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 subsystemfieldRelative- Whether the movement is relative to the field or absoluteopenLoop- Open or closed loop system
-
-
Method Details