Class SwerveSimpleTrajectoryCommand
java.lang.Object
org.wpilib.command2.Command
xbot.common.command.BaseCommand
xbot.common.subsystems.drive.SwerveSimpleTrajectoryCommand
- All Implemented Interfaces:
AutoCloseable, org.wpilib.telemetry.TelemetryLoggable, org.wpilib.tunable.ComplexTunable, TunablePrefixProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wpilib.command2.Command
org.wpilib.command2.Command.InterruptionBehavior -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanprotected BaseSwerveDriveSubsystemprotected HeadingModuleprotected BasePoseSubsystemFields inherited from class BaseCommand
aKitLog, log, monitor, runningAlert -
Constructor Summary
ConstructorsConstructorDescriptionSwerveSimpleTrajectoryCommand(BaseSwerveDriveSubsystem drive, BasePoseSubsystem pose, TunableFactory tunableFactory, HeadingModule.HeadingModuleFactory headingModuleFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidend(boolean interrupted) voidexecute()voidbooleanvoidreset()voidsetAlternativeIsFinishedSupplier(BooleanSupplier alternativeIsFinishedSupplier) voidsetConstantRotationPowerSupplier(DoubleSupplier constantRotationPowerSupplier) Methods inherited from class BaseCommand
close, getPrefix, publishToTunables, publishToTunables, runsWhenDisabled, setRunsWhenDisabledMethods inherited from class org.wpilib.command2.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getTelemetryType, getTunableType, handleInterrupt, hasRequirement, ignoringDisable, isScheduled, logTo, onlyIf, onlyWhile, publishTunable, raceWith, repeatedly, setName, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wpilib.tunable.ComplexTunable
publishChildTunable, publishChildTunable, removeChildTunable, setChildTunableChanged, updateTunable
-
Field Details
-
drive
-
pose
-
headingModule
-
logic
-
constantRotationPowerSupplier
-
constantRotationEnabled
public boolean constantRotationEnabled
-
-
Constructor Details
-
SwerveSimpleTrajectoryCommand
@Inject public SwerveSimpleTrajectoryCommand(BaseSwerveDriveSubsystem drive, BasePoseSubsystem pose, TunableFactory tunableFactory, HeadingModule.HeadingModuleFactory headingModuleFactory)
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classBaseCommand
-
reset
public void reset() -
setConstantRotationPowerSupplier
-
execute
public void execute()- Overrides:
executein classorg.wpilib.command2.Command
-
isFinished
public boolean isFinished()- Overrides:
isFinishedin classorg.wpilib.command2.Command
-
setAlternativeIsFinishedSupplier
-
getAlternativeIsFinishedSupplier
-
end
public void end(boolean interrupted) - Overrides:
endin classBaseCommand
-