Class TorqueSubsequent

java.lang.Object
org.texastorque.torquelib.control.TorqueSubsequent

public final class TorqueSubsequent extends Object
Class that deals with doing one thing the first time the loop executes and another thing once all subsequent iterations.
  • 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

      public final void execute(Runnable initial, Runnable subsequent)
      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()