T - The RobotHardware class configured for the specific robot.public abstract class RobotLinearOpMode<T extends RobotHardware>
extends com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
LinearOpMode| Modifier and Type | Field and Description |
|---|---|
protected T |
robot
The
RobotHardware instance for the op mode, used to access the hardware. |
| Constructor and Description |
|---|
RobotLinearOpMode() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
initializeRobot()
Initialize servo positions, sensors, etc.
|
void |
runOpMode()
Linearly executes a series of commands.
|
abstract void |
runRobot()
Execute the body of the op mode
|
init, loop, opModeIsActive, sleep, start, stop, waitForStart, waitOneHardwareCycleprotected T extends RobotHardware robot
RobotHardware instance for the op mode, used to access the hardware.public final void runOpMode()
throws java.lang.InterruptedException
robot, and then calls initializeRobot(),
then waitForStart() until the driver station starts the op mode, and then
runRobot().runOpMode in class com.qualcomm.robotcore.eventloop.opmode.LinearOpModejava.lang.InterruptedExceptionpublic abstract void initializeRobot()
public abstract void runRobot()