Class NullModule
java.lang.Object
com.cdarobotics.cdalib.opmodes.modules.Module
com.cdarobotics.cdalib.opmodes.modules.NullModule
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Called once when the OpMode initializes.voidCalled repeatedly during the OpMode init phase, afterModule.init()and beforeModule.start(), while the driver is still on the init screen.voidloop()Called every loop.voidstart()Called once when the OpMode starts (play pressed).voidstop()Called once when the OpMode ends.
-
Constructor Details
-
NullModule
public NullModule()
-
-
Method Details
-
init
public void init()Description copied from class:ModuleCalled once when the OpMode initializes. -
init_loop
public void init_loop()Description copied from class:ModuleCalled repeatedly during the OpMode init phase, afterModule.init()and beforeModule.start(), while the driver is still on the init screen. -
start
public void start()Description copied from class:ModuleCalled once when the OpMode starts (play pressed). -
loop
public void loop()Description copied from class:ModuleCalled every loop. -
stop
public void stop()Description copied from class:ModuleCalled once when the OpMode ends.
-