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 and System.err become available

IMPORTANT! When extending this class and overriding init(), make sure that super.init() is called!

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.qualcomm.robotcore.hardware.Gamepad
     
    com.qualcomm.robotcore.hardware.Gamepad
     
    com.qualcomm.robotcore.hardware.HardwareMap
     
    static final int
     
    int
    Deprecated.
    boolean
     
    org.firstinspires.ftc.robotcore.external.Telemetry
     

    Fields inherited from class com.qualcomm.robotcore.eventloop.opmode.OpMode

    msStuckDetectInit, msStuckDetectInitLoop, msStuckDetectLoop, msStuckDetectStart, time
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Debug method that detects all devices and the runtime environment in general.
    void
     
    final void
     
    void
    sleep(long milliseconds)
    Waits a desired number of milliseconds.

    Methods inherited from class com.qualcomm.robotcore.eventloop.opmode.OpMode

    getRuntime, init_loop, internalPostInitLoop, internalPostLoop, internalPreInit, internalUpdateTelemetryNow, loop, resetRuntime, start, stop, terminateOpModeNow, updateTelemetry

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • stopped

      public volatile boolean stopped
    • MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED

      public static final int MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED
      See Also:
    • gamepad1

      public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad1
    • gamepad2

      public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad2
    • telemetry

      public org.firstinspires.ftc.robotcore.external.Telemetry telemetry
    • hardwareMap

      public volatile com.qualcomm.robotcore.hardware.HardwareMap hardwareMap
    • msStuckDetectStop

      @Deprecated public int msStuckDetectStop
      Deprecated.
  • Constructor Details

    • BootstrappedOpMode

      public BootstrappedOpMode()
  • Method Details

    • dumpEnvironment

      public void dumpEnvironment()
      Debug method that detects all devices and the runtime environment in general.
    • sleep

      public void sleep(long milliseconds) throws InterruptedException
      Waits a desired number of milliseconds. Thread.sleep(long) does not work, use this instead!
      Parameters:
      milliseconds - Number of milliseconds to wait
      Throws:
      InterruptedException
    • init

      public void init()
      Specified by:
      init in class com.qualcomm.robotcore.eventloop.opmode.OpMode
    • requestOpModeStop

      public final void requestOpModeStop()