public abstract class TeleOp extends SimpleOpMode
Modifier and Type | Field and Description |
---|---|
private ControlLayout |
joystickLayout
The control layout of the driving joystick.
|
Constructor and Description |
---|
TeleOp() |
Modifier and Type | Method and Description |
---|---|
ControlLayout |
createControlLayout()
Constructs the joystick control layout that the op mode should use.
|
protected ControlLayout |
getControlLayout()
Gets a reference to the
ControlLayout that this op mode is using. |
protected void |
initializeOpMode()
Initializes the robot.
|
protected void |
main()
Executes the 'main procedure' of the op mode.
|
protected void |
mainLoop()
Executes the 'body' of any tele op.
|
protected void |
setMovement()
Sets the instantaneous movement of the robot based on readings from the joysticks.
|
getRobot, setRobot
runOpMode
init_loop, init, loop, opModeIsActive, sleep, start, stop, waitForNextHardwareCycle, waitForStart, waitOneFullHardwareCycle
private ControlLayout joystickLayout
protected void main()
LightningOpMode
main
in class LightningOpMode
protected void initializeOpMode()
LightningOpMode
super.initializeOpMode()
on the first line.initializeOpMode
in class LightningOpMode
LightningOpMode.isInitialized
protected void setMovement()
protected void mainLoop()
setMovement()
.public ControlLayout createControlLayout()
ControlLayout
that should be used for this op mode.protected ControlLayout getControlLayout()
ControlLayout
that this op mode is using.