Class AutoStepDelay
java.lang.Object
org.wildstang.framework.auto.AutoStep
org.wildstang.framework.auto.steps.control.AutoStepDelay
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 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.wildstang.framework.auto.AutoStep
isFinished, setFinished, setFinished
-
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:
initializein classAutoStep
-
update
public void update()Once timer has passed the AutoStep finishes. -
toString
Returns the name of the AutoStep, "Delay for X ms".
-