Interface TrcTaskMgr.IoTaskCallback

Enclosing class:
TrcTaskMgr

public static interface TrcTaskMgr.IoTaskCallback
This interface can be provided by the platform dependent task scheduler who will be called before and after each IO task loop. Typically, it will contain code to initialize the hardware to start or end bulk IO cycle. If platform dependent hardware doesn't require this, it doesn't need to implement it. To provide this interface, call the registerIoTaskLoopBegin and registerIoTaskLoopEnd methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called by the IO task thread begin or after each IO task loop.
  • Method Details

    • ioTaskCallback

      void ioTaskCallback(TrcRobot.RunMode runMode)
      This method is called by the IO task thread begin or after each IO task loop. It typically contains code to initialize the hardware to start or end build bulk IO cycle.
      Parameters:
      runMode - specifies the robot run mode (e.g. Autonomous, TeleOp, Test).