Class WaitCommand

All Implemented Interfaces:
Sendable, AutoCloseable

public class WaitCommand
extends TimedCommand
A WaitCommand will wait for a certain amount of time before finishing. It is useful if you want a CommandGroup to pause for a moment.

This class is provided by the OldCommands VendorDep

See Also:
CommandGroup
  • Constructor Details

    • WaitCommand

      public WaitCommand​(double timeout)
      Instantiates a WaitCommand with the given timeout.
      Parameters:
      timeout - the time the command takes to run (seconds)
    • WaitCommand

      public WaitCommand​(String name, double timeout)
      Instantiates a WaitCommand with the given timeout.
      Parameters:
      name - the name of the command
      timeout - the time the command takes to run (seconds)