Interface Action

  • All Implemented Interfaces:

    
    public interface Action
    
                        

    Concurrent task for cooperative multitasking with some FTC dashboard hooks. Actions may have mutable state.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean run(TelemetryPacket p) Runs a single uninterruptible block.
      Unit preview(Canvas fieldOverlay) Draws a preview of the action on canvas fieldOverlay.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • run

         abstract 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.