Class Hosting
java.lang.Object
com.crossbotics.ftchelper.finders.Hosting
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 TypeMethodDescriptionbooleaninInit(com.qualcomm.robotcore.eventloop.opmode.OpMode guest) The host's opModeInInit(); false (and the finder ends) after a new BACK press.voidlend(com.qualcomm.robotcore.eventloop.opmode.OpMode guest) Gives the finder the host's hardware, screen and gamepads.booleanrunning(com.qualcomm.robotcore.eventloop.opmode.OpMode guest) The host's opModeIsActive().booleanThe host's isStopRequested(), or true after BACK (so the finder ends without running).
-
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).
-