T - The RobotHardware class configured for the specific robot.public abstract class RobotOpMode<T extends RobotHardware>
extends com.qualcomm.robotcore.eventloop.opmode.OpMode
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 |
|---|
RobotOpMode() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initializes
robot, and then calls initializeRobot(). |
abstract void |
initializeRobot()
Initialize servo positions, sensors, etc.
|
abstract void |
loop() |
protected T extends RobotHardware robot
RobotHardware instance for the op mode, used to access the hardware.public void init()
robot, and then calls initializeRobot().init in class com.qualcomm.robotcore.eventloop.opmode.OpModepublic abstract void initializeRobot()
public abstract void loop()
loop in class com.qualcomm.robotcore.eventloop.opmode.OpMode