Class InstantAction

  • All Implemented Interfaces:
    com.acmerobotics.roadrunner.Action

    
    public final class InstantAction
     implements Action
                        

    Instant action that executes f immediately.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final InstantFunction f
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final InstantFunction getF()
      Boolean run(TelemetryPacket p) Runs a single uninterruptible block.
      • Methods inherited from class com.acmerobotics.roadrunner.Action

        preview
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

         Boolean run(TelemetryPacket p)

        Runs a single uninterruptible block. Returns true if the action should run again and false if it has completed. A telemetry packet p is provided to record any information on the action's progress.