Class Hosting

java.lang.Object
com.crossbotics.ftchelper.finders.Hosting

public final class Hosting extends Object
Runs a finder (or the Hardware Check) inside another OpMode: "Tune and check" (TuneAndCheckOpMode). The finder gets the host's hardware, screen and gamepads, and the host's INIT, START and STOP. In INIT, BACK on gamepad 1 leaves the finder and goes back to the host's menu. You do not use this class yourself.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    inInit(com.qualcomm.robotcore.eventloop.opmode.OpMode guest)
    The host's opModeInInit(); false (and the finder ends) after a new BACK press.
    void
    lend(com.qualcomm.robotcore.eventloop.opmode.OpMode guest)
    Gives the finder the host's hardware, screen and gamepads.
    boolean
    running(com.qualcomm.robotcore.eventloop.opmode.OpMode guest)
    The host's opModeIsActive().
    boolean
    The host's isStopRequested(), or true after BACK (so the finder ends without running).

    Methods inherited from class java.lang.Object

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

    • lend

      public void lend(com.qualcomm.robotcore.eventloop.opmode.OpMode guest)
      Gives the finder the host's hardware, screen and gamepads. Done again at every check, because the SDK may give an OpMode new gamepad objects.
    • inInit

      public boolean inInit(com.qualcomm.robotcore.eventloop.opmode.OpMode guest)
      The host's opModeInInit(); false (and the finder ends) after a new BACK press.
    • running

      public boolean running(com.qualcomm.robotcore.eventloop.opmode.OpMode guest)
      The host's opModeIsActive().
    • stopRequested

      public boolean stopRequested()
      The host's isStopRequested(), or true after BACK (so the finder ends without running).