Class SwerveDriveDriveWhileAligned
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
com.stuypulse.robot.commands.swerve.driveAligned.SwerveDriveDriveWhileAligned
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
- Direct Known Subclasses:
SwerveDriveWhileAlignedToFerryZone,SwerveDriveWhileAlignedToHub
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final edu.wpi.first.wpilibj2.command.button.CommandXboxControllerprivate final DriveInputProcessorprotected static final CommandSwerveDrivetrainprivate final Supplier<edu.wpi.first.math.geometry.Pose2d> -
Constructor Summary
ConstructorsConstructorDescriptionSwerveDriveDriveWhileAligned(edu.wpi.first.wpilibj2.command.button.CommandXboxController driver, Supplier<edu.wpi.first.math.geometry.Pose2d> targetPose) -
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
-
Field Details
-
swerve
-
driver
-
speed
-
targetPose
-
-
Constructor Details
-
SwerveDriveDriveWhileAligned
public SwerveDriveDriveWhileAligned(edu.wpi.first.wpilibj2.command.button.CommandXboxController driver, Supplier<edu.wpi.first.math.geometry.Pose2d> targetPose)
-
-
Method Details
-
getTargetAngle
-
execute
- Overrides:
executein classedu.wpi.first.wpilibj2.command.Command
-