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.outandSystem.errbecome 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.Gamepadgamepad1com.qualcomm.robotcore.hardware.Gamepadgamepad2com.qualcomm.robotcore.hardware.HardwareMaphardwareMapstatic intMS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTEDintmsStuckDetectStopDeprecated.org.firstinspires.ftc.robotcore.external.Telemetrytelemetry
-
Constructor Summary
Constructors Constructor Description BootstrappedOpMode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddumpEnvironment()Debug method that detects all devices and the runtime environment in general.voidinit()voidrequestOpModeStop()protected voidsleep(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:
initin classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
requestOpModeStop
public final void requestOpModeStop()
-
-