Class NullModule

java.lang.Object
com.cdarobotics.cdalib.opmodes.modules.Module
com.cdarobotics.cdalib.opmodes.modules.NullModule

public class NullModule extends Module
A no-op Module whose lifecycle methods do nothing. Useful as a placeholder or default where a module is required but no behavior is wanted.
  • Constructor Details

    • NullModule

      public NullModule()
  • Method Details

    • init

      public void init()
      Description copied from class: Module
      Called once when the OpMode initializes.
      Specified by:
      init in class Module
    • init_loop

      public void init_loop()
      Description copied from class: Module
      Called repeatedly during the OpMode init phase, after Module.init() and before Module.start(), while the driver is still on the init screen.
      Specified by:
      init_loop in class Module
    • start

      public void start()
      Description copied from class: Module
      Called once when the OpMode starts (play pressed).
      Specified by:
      start in class Module
    • loop

      public void loop()
      Description copied from class: Module
      Called every loop.
      Specified by:
      loop in class Module
    • stop

      public void stop()
      Description copied from class: Module
      Called once when the OpMode ends.
      Specified by:
      stop in class Module