Class BindingModule

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

public class BindingModule extends Module
A Module that runs an action whenever its binding fires. The binding is registered with the given BindingManager, and the action is triggered edge-wise — once each time the binding transitions from inactive to active.
  • Constructor Details

  • 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