Package com.pocolifo.robobase.bootstrap
Class BootstrappedOpMode
- java.lang.Object
-
- com.qualcomm.robotcore.eventloop.opmode.OpMode
-
- com.pocolifo.robobase.bootstrap.BootstrappedOpMode
-
- Direct Known Subclasses:
AutonomousOpMode
,TeleOpOpMode
public abstract class BootstrappedOpMode extends com.qualcomm.robotcore.eventloop.opmode.OpMode
"Bootstrapping" is the preparing another program to initialize. This OpMode allows RoboCore to initialize. Upon initialization of RoboCore, -
System.out
andSystem.err
become availableIMPORTANT! When extending this class and overriding
init()
, make sure thatsuper.init()
is called!- See Also:
OpMode
,System.out
,System.err
-
-
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 BootstrappedOpMode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dumpEnvironment()
Debug method that detects all devices and the runtime environment in general.void
init()
void
requestOpModeStop()
protected void
sleep(long milliseconds)
Waits a desired number of milliseconds.
-
-
-
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
-
dumpEnvironment
public void dumpEnvironment()
Debug method that detects all devices and the runtime environment in general.
-
sleep
protected void sleep(long milliseconds)
Waits a desired number of milliseconds.Thread.sleep(long)
does not work, use this instead!- Parameters:
milliseconds
- Number of milliseconds to wait
-
init
public void init()
- Specified by:
init
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
requestOpModeStop
public final void requestOpModeStop()
-
-