Package frc.robot.commands
Class TeleopSwerve
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.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
-
Constructor Summary
ConstructorsConstructorDescriptionTeleopSwerve
(Swerve swerveDrive, CommandXboxController controller, boolean fieldRelative, boolean openLoop) Creates a command for driving the swerve drive during tele-opTeleopSwerve
(Swerve swerveDrive, CommandXboxController controller, boolean fieldRelative, boolean openLoop, double speedMultiplier) Creates a command for driving the swerve drive during tele-op -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, 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, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
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 subsystemfieldRelative
- Whether the movement is relative to the field or absoluteopenLoop
- 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 subsystemfieldRelative
- Whether the movement is relative to the field or absoluteopenLoop
- Open or closed loop systemspeedMultiplier
- Speed multiplier to increase or decrease speed
-
-
Method Details