Class 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 Summary

      Fields 
      Modifier and Type Field Description
      protected double delay  
      protected edu.wpi.first.wpilibj.Timer timer  
    • Constructor Summary

      Constructors 
      Constructor Description
      AutoStepDelay​(int msDelay)
      Constructing creates a new timer for msDelay ms.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize()
      Starts the timer on initialization.
      java.lang.String toString()
      Returns the name of the AutoStep, "Delay for X ms".
      void update()
      Once timer has passed the AutoStep finishes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • delay

        protected final double delay
      • timer

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

      • AutoStepDelay

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

      • 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 java.lang.String toString()
        Returns the name of the AutoStep, "Delay for X ms".
        Specified by:
        toString in class AutoStep
        Returns:
        Name of the AutoStep.