Package frc.lib.util

Class DynamicWaitCommand

All Implemented Interfaces:
Sendable

public class DynamicWaitCommand extends Command
Creates a new WaitCommand. This command will do nothing, and end after the specified duration.
  • Field Details

    • m_timer

      protected Timer m_timer
  • Constructor Details

    • DynamicWaitCommand

      public DynamicWaitCommand(DoubleSupplier seconds)
      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:
      initialize in class Command
    • end

      public void end(boolean interrupted)
      Overrides:
      end in class Command
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class Command
    • runsWhenDisabled

      public boolean runsWhenDisabled()
      Overrides:
      runsWhenDisabled in class Command