Package com.pocolifo.robobase.bootstrap
Class TeleOpOpMode
- java.lang.Object
-
- com.qualcomm.robotcore.eventloop.opmode.OpMode
-
- com.pocolifo.robobase.bootstrap.BootstrappedOpMode
-
- com.pocolifo.robobase.bootstrap.TeleOpOpMode
-
public abstract class TeleOpOpMode extends BootstrappedOpMode
Base class for TeleOp code to go.
-
-
Field Summary
Fields Modifier and Type Field Description com.qualcomm.robotcore.hardware.Gamepad
gamepad1
com.qualcomm.robotcore.hardware.Gamepad
gamepad2
com.qualcomm.robotcore.hardware.HardwareMap
hardwareMap
static int
MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED
int
msStuckDetectStop
Deprecated.org.firstinspires.ftc.robotcore.external.Telemetry
telemetry
-
Constructor Summary
Constructors Constructor Description TeleOpOpMode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
init()
void
init_loop()
abstract void
initialize()
The initialization method for TeleOp.void
requestOpModeStop()
-
Methods inherited from class com.pocolifo.robobase.bootstrap.BootstrappedOpMode
dumpEnvironment, sleep
-
-
-
-
Field Detail
-
MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED
public static final int MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED
- See Also:
- Constant Field Values
-
gamepad1
public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad1
-
gamepad2
public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad2
-
telemetry
public final org.firstinspires.ftc.robotcore.external.Telemetry telemetry
-
hardwareMap
public volatile com.qualcomm.robotcore.hardware.HardwareMap hardwareMap
-
msStuckDetectStop
@Deprecated public int msStuckDetectStop
Deprecated.
-
-
Method Detail
-
init
public final void init()
- Overrides:
init
in classBootstrappedOpMode
-
init_loop
public final void init_loop()
- Overrides:
init_loop
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
initialize
public abstract void initialize()
The initialization method for TeleOp. The reason for having a separate initialize method is so that you have to override it. This also eliminates errors occurring ifsuper.init()
isn't called.
-
requestOpModeStop
public final void requestOpModeStop()
-
-