Class SimpleWaitForMaintainerCommand
java.lang.Object
org.wpilib.command2.Command
xbot.common.command.BaseCommand
xbot.common.command.SimpleWaitForMaintainerCommand
- All Implemented Interfaces:
AutoCloseable, org.wpilib.telemetry.TelemetryLoggable, org.wpilib.tunable.ComplexTunable, TunablePrefixProvider
Command that waits for a maintainer to be at its goal or until a timeout.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wpilib.command2.Command
org.wpilib.command2.Command.InterruptionBehavior -
Field Summary
Fields inherited from class BaseCommand
aKitLog, log, monitor, runningAlert -
Constructor Summary
ConstructorsConstructorDescriptionSimpleWaitForMaintainerCommand(BaseSetpointSubsystem<?, ?> subsystem, DoubleSupplier delaySupplier) Creates a new SimpleWaitForMaintainerCommand instance. -
Method Summary
Methods inherited from class BaseCommand
close, end, 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
-
Constructor Details
-
SimpleWaitForMaintainerCommand
public SimpleWaitForMaintainerCommand(BaseSetpointSubsystem<?, ?> subsystem, DoubleSupplier delaySupplier) Creates a new SimpleWaitForMaintainerCommand instance.- Parameters:
subsystem- The maintainer subsystem.delaySupplier- The timeout duration in seconds via a supplier.
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classBaseCommand
-
execute
public void execute()- Overrides:
executein classorg.wpilib.command2.Command
-
isFinished
public boolean isFinished()- Overrides:
isFinishedin classorg.wpilib.command2.Command
-