Class SwerveDriveSetAlignment
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
com.stuypulse.robot.commands.swerve.driveAligned.SwerveDriveSetAlignment
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
- Direct Known Subclasses:
SwerveDriveAlignToFerryZone,SwerveDriveAlignToHub
-
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 TypeFieldDescriptionprotected final edu.wpi.first.math.filter.Debouncerprotected final BooleanSupplierprivate Supplier<edu.wpi.first.math.geometry.Pose2d>protected static final CommandSwerveDrivetrain -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSwerveDriveSetAlignment(Supplier<edu.wpi.first.math.geometry.Pose2d> pose) -
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, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Field Details
-
swerve
-
isAligned
-
alignmentDebouncer
-
pose
-
-
Constructor Details
-
SwerveDriveSetAlignment
-
-
Method Details
-
getTargetAngle
-
isFinished
- Overrides:
isFinishedin classedu.wpi.first.wpilibj2.command.Command
-
execute
- Overrides:
executein classedu.wpi.first.wpilibj2.command.Command
-