Class NullSubsystem
java.lang.Object
com.cdarobotics.cdalib.subsystems.Subsystem
com.cdarobotics.cdalib.subsystems.NullSubsystem
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Called once when the OpMode initializes.voidCalled repeatedly during the OpMode init phase, afterSubsystem.init()and beforeSubsystem.start(), while the driver is still on the init screen.voidstart()Called once when the OpMode starts (play pressed).voidstop()Called once when the OpMode ends.voidupdate()Called every loop.
-
Constructor Details
-
NullSubsystem
public NullSubsystem()
-
-
Method Details
-
init
public void init()Description copied from class:SubsystemCalled once when the OpMode initializes. Grab hardware and set starting state here. -
init_loop
public void init_loop()Description copied from class:SubsystemCalled repeatedly during the OpMode init phase, afterSubsystem.init()and beforeSubsystem.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. -
start
public void start()Description copied from class:SubsystemCalled once when the OpMode starts (play pressed). -
update
public void update()Description copied from class:SubsystemCalled every loop. Read inputs and drive the mechanism here. -
stop
public void stop()Description copied from class:SubsystemCalled once when the OpMode ends. Safe or release the mechanism here.
-