public void handleDroppedConnection() { OpModeManager var1 = this.eventLoop.getOpModeManager(); String var2 = "Lost connection while running op mode: " + var1.getActiveOpModeName(); this.resetGamepads(); var1.initActiveOpMode("Stop Robot"); this.reportRobotStatus(RobotState.DROPPED_CONNECTION); RobotLog.i(var2); }
/** * The Op Mode Manager will call this method when it wants a list of all available op modes. Add * your op mode to the list to enable it. * * @param manager op mode manager */ public void register(OpModeManager manager) { /* * register your op modes here. * The first parameter is the name of the op mode * The second parameter is the op mode class property * * If two or more op modes are registered with the same name, the app will display an error. */ manager.register("NullOp", NullOp.class); // manager.register("MatrixK9TeleOp", MatrixK9TeleOp.class); // manager.register("K9TeleOp", K9TeleOp.class); // manager.register ("PushBotAuto", PushBotAuto.class); // manager.register ("PushBotManual", PushBotManual.class); // manager.register("FourWheelTeleOp",FourWheelTeleOp.class); // manager.register("LegacyTeleOp",LegacyTeleOp.class); // manager.register("MonopolyTeleOp",MonopolyTeleOp.class); // manager.register("MonopolyAuto",MonopolyAuto.class); // manager.register("Teleop",teleop.class); // manager.register("TankDrive",MonopolyTeleOpTank.class); // manager.register("TankDrive",ColorSensorDriver.class); manager.register("TheFreshMenTelOp", TheFreshMenTeleOp.class); manager.register("TheFreshMenAuton", TheFreshMenAuton.class); // manager.register("StraightAuto",StraightAuto.class); /* * Uncomment any of the following lines if you want to register an op mode. */ // manager.register("AdafruitRGBExample", AdafruitRGBExample.class); // manager.register("ColorSensorDriver", ColorSensorDriver.class); // manager.register("IrSeekerOp", IrSeekerOp.class); // manager.register("CompassCalibration", CompassCalibration.class); // manager.register("I2cAddressChangeExample", LinearI2cAddressChange.class); // manager.register("NxtTeleOp", NxtTeleOp.class); // manager.register("LinearK9TeleOp", LinearK9TeleOp.class); // manager.register("LinearIrExample", LinearIrExample.class); // manager.register ("PushBotManual1", PushBotManual1.class); // manager.register ("PushBotAutoSensors", PushBotAutoSensors.class); // manager.register ("PushBotIrEvent", PushBotIrEvent.class); // manager.register ("PushBotManualSensors", PushBotManualSensors.class); // manager.register ("PushBotOdsDetectEvent", PushBotOdsDetectEvent.class); // manager.register ("PushBotOdsFollowEvent", PushBotOdsFollowEvent.class); // manager.register ("PushBotTouchEvent", PushBotTouchEvent.class); // manager.register("PushBotDriveTouch", PushBotDriveTouch.java); // manager.register("PushBotIrSeek", PushBotIrSeek.java); // manager.register("PushBotSquare", PushBotSquare.java); }
/** * The Op Mode Manager will call this method when it wants a list of all available op modes. Add * your op mode to the list to enable it. * * @param manager op mode manager */ public void register(OpModeManager manager) { /* * register your op modes here. * The first parameter is the name of the op mode * The second parameter is the op mode class property * * If two or more op modes are registered with the same name, the app will display an error. */ manager.register("NullOp", NullOp.class); manager.register("K9TeleOp", K9TeleOp.class); manager.register("PushBotAuto", PushBotAuto.class); manager.register("PushBotManual", PushBotManual.class); manager.register("Test1", Test1.class); manager.register("Autonomous1", Autonomous1.class); manager.register("DisplayBot", DisplayBot.class); manager.register("gyroTest", gyroTest.class); /* * Uncomment any of the following lines if you want to register an op mode. */ // manager.register("AdafruitRGBExample", AdafruitRGBExample.class); // manager.register("MRRGBExample", MRRGBExample.class); // manager.register("ColorSensorDriver", ColorSensorDriver.class); // manager.register("HTRGBExample", HTRGBExample.class); // manager.register("IrSeekerOp", IrSeekerOp.class); // manager.register("CompassCalibration", CompassCalibration.class); // manager.register("I2cAddressChangeExample", LinearI2cAddressChange.class); // manager.register("NxtTeleOp", NxtTeleOp.class); // manager.register("LinearK9TeleOp", LinearK9TeleOp.class); // manager.register("LinearIrExample", LinearIrExample.class); // manager.register ("PushBotManual1", PushBotManual1.class); // manager.register ("PushBotAutoSensors", PushBotAutoSensors.class); // manager.register ("PushBotIrEvent", PushBotIrEvent.class); // manager.register ("PushBotManualSensors", PushBotManualSensors.class); // manager.register ("PushBotOdsDetectEvent", PushBotOdsDetectEvent.class); // manager.register ("PushBotOdsFollowEvent", PushBotOdsFollowEvent.class); // manager.register ("PushBotTouchEvent", PushBotTouchEvent.class); // manager.register("PushBotDriveTouch", PushBotDriveTouch.class); // manager.register("PushBotIrSeek", PushBotIrSeek.class); // manager.register("PushBotSquare", PushBotSquare.class); }
/** * The Op Mode Manager will call this method when it wants a list of all available op modes. Add * your op mode to the list to enable it. * * @param manager op mode manager */ public void register(OpModeManager manager) { /* * register your op modes here. * The first parameter is the name of the op mode * The second parameter is the op mode class property * * If two or more op modes are registered with the same name, the app will display an error. */ // manager.register("NullOp", NullOp.class); // manager.register ("Auto Blue Position 1", BluePos1.class); // manager.register("BluePos1Camera", BluePos1Camera.class); // manager.register("Auto Blue Position 1 Play Nice", BluePos1Wait.class); // manager.register ("Auto Blue Position 2", BluePos2.class); // manager.register("Auto Blue Position 2 Play Nice", BluePos2Wait.class); // manager.register ("Auto Red Position 1", RedPos1.class); // manager.register("RedPos1 w/Camera", RedPos1Camera.class); // manager.register("Auto Red Position 1 Play Nice", RedPos1Wait.class); // manager.register ("Auto Red Position 2", RedPos2.class); // manager.register("Auto Red Position 2 Play Nice", RedPos2Wait.class); // manager.register("Old Tele Op", tankDriveSpinnerLifterThing.class); manager.register("Tele Op", teleopUMKC.class); manager.register("Autonomous Interface", AutonomousInterface.class); // manager.register("cameraTestUMKC", cameraTestUMKC.class); }
/** * The Op Mode Manager will call this method when it wants a list of all available op modes. Add * your op mode to the list to enable it. * * @param manager op mode manager */ public void register(OpModeManager manager) { /* * register your op modes here. * The first parameter is the name of the op mode * The second parameter is the op mode class property * * If two or more op modes are registered with the same name, the app will display an error. */ // manager.register("NullOp", NullOp.class); // manager.register("K9TeleOp", K9TeleOp.class); // manager.register ("PushBotAuto", PushBotAuto.class); // manager.register ("PushBotManual", PushBotManual.class); // manager.register ("RhtpTankDrive", RhtpTankDrive.class); // manager.register ("RhtpTankDriveNegativeMotors", RhtpTankDriveNegativeMotors.class); // manager.register ("TestWheelsOP", TestWheelsOP.class); // manager.register ("RhtpTankDrive2Controls4Op", RhtpTankDrive2Controls4OP.class); // manager.register ("TestWheelsOP", TestWheelsOP.class); // manager.register ("TELEMainTeleopControlChimayo", TELEMainTeleopControlChimayo.class); // manager.register ("TELEMainTeleopControlHidalgo", TELEMainTeleopControlHidalgo.class); // manager.register ("TESTMoveTillWhite", TESTMoveTillWhite.class); manager.register("TESTServoControl", TESTServoControl.class); // manager.register("TESTDistanceSensor", TESTDistanceSensor.class); // manager.register("TESTAutoStop", TESTAutoStop.class); // manager.register("TESTAutoFollowLine", TESTAutoFollowLine.class); // manager.register ("AutoMoveForwardGyroOP", AutoMoveForwardGyroOP.class); // manager.register ("continousServoOp", continousServoOp.class); // manager.register("MatrixK9TeleOp", MatrixK9TeleOp.class); // manager.register("K9TeleOp", K9TeleOp.class); // manager.register("PushBotAuto", PushBotAuto.class); // manager.register("PushBotManual", PushBotManual.class); // manager.register("ColrSensorDriver", ColorSensorDriver.class); // manager.register("Auto_Tile1_RedGroundPark", Auto_Tile1_RedGroundPark.class); // manager.register("WheelieBarTEST", WheelieBarTEST.class); // manager.register("triggersTEST", triggersTEST.class); // manager.register("AUTOWaitThenGo",AUTOWaitThenGo.class); // manager.register("AUTOGo",AUTOGo.class); // manager.register("AUTOWheelieDownThenGoBack",AUTOWheelieDownThenGo.class); // manager.register("SolaBotEncoderTest",SolaBotEncoderTest.class); // manager.register("SolaBotGyroTest",SolaBotGyroTest.class); // manager.register("AUTODriveAndDumpPosARed",AUTODriveAndDumpPosARed.class); // manager.register("AUTODriveAndDumpPosBRed",AUTODriveAndDumpPosBRed.class); // manager.register("WAIT AUTODriveAndDumpPosBRed",AUTO_5_SEC_WAITDriveAndDumpPosBRed.class); // manager.register("AUTODriveAndDumpPosBRed",AUTODriveAndDumpPosBRed.class); // manager.register("WAIT AUTODriveAndDumpPosBBlue",AUTO_5_SEC_WAITDriveAndDumpPosBBlue.class); // manager.register("AUTODriveAndDumpPosBBlue",AUTODriveAndDumpPosBBlue.class); manager.register("MiniBotLightWeight", MiniBotLightWeight.class); manager.register("MiniBotMIAE", MiniBotMIAE.class); manager.register("MiniBotQuarkle", MiniBotQuarkle.class); manager.register("MiniBotSlug", MiniBotSlug.class); // manager.register("AUTODriveAndDumpPosBRedDistanceTest",AUTODriveAndDumpPosBRedDistanceTest.class); // manager.register("MRGyroTest",MRGyroTest.class); // manager.register("TESTGyro",TESTGyro.class); // manager.register("TESTAUTOmove",TESTAUTOmove.class); /* * Uncomment any of the following lines if you want to register an op mode. */ // manager.register("AdafruitRGBExample", AdafruitRGBExample.class); // manager.register("MRRGBExample", MRRGBExample.class); // manager.register("ColorSensorDriver", ColorSensorDriver.class); // manager.register("AUTOBeaconPressTest", AUTOBeaconPressTest.class); // manager.register("newOpMode", newOpMode.class); // manager.register("autoRight", autoRight.class); // manager.register("autoLeft", autoLeft.class); // manager.register("IrSeekerOp", IrSeekerOp.class); // manager.register("CompassCalibration", CompassCalibration.class); // manager.register("I2cAddressChangeExample", LinearI2cAddressChange.class); // manager.register("NxtTeleOp", NxtTeleOp.class); // manager.register("LinearK9TeleOp", LinearK9TeleOp.class); // manager.register("LinearIrExample", LinearIrExample.class); // manager.register ("PushBotManual1", PushBotManual1.class); // manager.register ("PushBotAutoSensors", PushBotAutoSensors.class); // manager.register ("PushBotIrEvent", PushBotIrEvent.class); // manager.register ("PushBotManualSensors", PushBotManualSensors.class); // manager.register ("PushBotOdsDetectEvent", PushBotOdsDetectEvent.class); // manager.register ("PushBotOdsFollowEvent", PushBotOdsFollowEvent.class); // manager.register ("PushBotTouchEvent", PushBotTouchEvent.class); // manager.register("PushBotDriveTouch", PushBotDriveTouch.class); // manager.register("PushBotIrSeek", PushBotIrSeek.class); // manager.register("PushBotSquare", PushBotSquare.class); }