Class NullSubsystem

java.lang.Object
com.cdarobotics.cdalib.subsystems.Subsystem
com.cdarobotics.cdalib.subsystems.NullSubsystem

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

    • NullSubsystem

      public NullSubsystem()
  • Method Details

    • init

      public void init()
      Description copied from class: Subsystem
      Called once when the OpMode initializes. Grab hardware and set starting state here.
      Specified by:
      init in class Subsystem
    • init_loop

      public void init_loop()
      Description copied from class: Subsystem
      Called repeatedly during the OpMode init phase, after Subsystem.init() and before Subsystem.start(), while the driver is still on the init screen. Use it for work that must keep running until play is pressed, such as reporting sensor readings or waiting on hardware.
      Specified by:
      init_loop in class Subsystem
    • start

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

      public void update()
      Description copied from class: Subsystem
      Called every loop. Read inputs and drive the mechanism here.
      Specified by:
      update in class Subsystem
    • stop

      public void stop()
      Description copied from class: Subsystem
      Called once when the OpMode ends. Safe or release the mechanism here.
      Specified by:
      stop in class Subsystem