Class AutoStepDelay

java.lang.Object
org.wildstang.framework.auto.AutoStep
org.wildstang.framework.auto.steps.control.AutoStepDelay

public class AutoStepDelay extends AutoStep
This step delays testing for the specified number of cycles. Note: If used in a parallel step group, it insures that the group waits for at least the specified number of cycles, instead.
  • Field Details

    • delay

      protected final double delay
    • timer

      protected edu.wpi.first.wpilibj.Timer timer
  • Constructor Details

    • AutoStepDelay

      public AutoStepDelay(int msDelay)
      Constructing creates a new timer for msDelay ms.
      Parameters:
      msDelay - Number of seconds to wait before finishing.
  • Method Details

    • initialize

      public void initialize()
      Starts the timer on initialization.
      Specified by:
      initialize in class AutoStep
    • update

      public void update()
      Once timer has passed the AutoStep finishes.
      Specified by:
      update in class AutoStep
    • toString

      public String toString()
      Returns the name of the AutoStep, "Delay for X ms".
      Specified by:
      toString in class AutoStep
      Returns:
      Name of the AutoStep.