Class TorqueSubsequent
java.lang.Object
org.texastorque.torquelib.control.TorqueSubsequent
Class that deals with doing one thing the first time
the loop executes and another thing once all subsequent
iterations.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TorqueSubsequent
public TorqueSubsequent()
-
-
Method Details
-
calculate
public final boolean calculate()Is this the first time the loop has executed?- Returns:
- If this is the first time the loop has executed.
-
execute
Executes initial if this is the first time, and subsequent if this is not the first time.- Parameters:
initial
- The function to run on the first time.subsequent
- The function to run subsequent times.
-
reset
public final void reset()
-