Class Module
java.lang.Object
com.cdarobotics.cdalib.opmodes.modules.Module
- Direct Known Subclasses:
BindingModule,LambdaModule,NullModule,TeleOpPedroModule
A reusable, OpMode-shaped unit of behavior. A module has the same lifecycle as an OpMode
(
init(), init_loop(), start(), loop(), stop()) and is
driven automatically once installed with ModularOpMode.installModule(com.cdarobotics.cdalib.opmodes.modules.Module).
Use it to package program logic that can be shared across multiple OpModes.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Module
public Module()
-
-
Method Details
-
init
public abstract void init()Called once when the OpMode initializes. -
init_loop
public abstract void init_loop() -
start
public abstract void start()Called once when the OpMode starts (play pressed). -
loop
public abstract void loop()Called every loop. -
stop
public abstract void stop()Called once when the OpMode ends.
-