Package frc.lib.util
Class DynamicWaitCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.lib.util.DynamicWaitCommand
- All Implemented Interfaces:
Sendable
Creates a new WaitCommand. This command will do nothing, and end after the specified duration.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior -
Field Summary
FieldsFields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, execute, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Field Details
-
m_timer
-
-
Constructor Details
-
DynamicWaitCommand
Creates a new WaitCommand. This command will do nothing, and end after the specified duration.- Parameters:
seconds- the time to wait, in seconds
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classCommand
-
end
public void end(boolean interrupted) -
isFinished
public boolean isFinished()- Overrides:
isFinishedin classCommand
-
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabledin classCommand
-