Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: Help? Driver phone will not detect new Op Mode (http://www.chiefdelphi.com/forums/showthread.php?t=138290)

KinaK 25-09-2015 02:48

[FTC]: Help? Driver phone will not detect new Op Mode
 
We are a brand new FTC team. We have created a simple original op mode in MIT APP, installed it on the Robot Controller, scanned, named all components as they are in program, then paired the driver phone with the robot controller phone. The Driver phone will not detect the new op mode. It has, twice, but then it defaults back to the pre-programmed op modes. I updated phones, and updated apps. That shortened the list of pre-installed pop modes, but ours still does show up as an option.

I restart phones, I restart robot, I re-pair the phones. What else can I try?

The kids really want to run more than two motors, they want to write their pop mode.

Help?

DavisDad 25-09-2015 06:14

Re: [FTC]: Help? Driver phone will not detect new Op Mode
 
Did you uninstall the previous app in the robot phone?

KinaK 25-09-2015 20:59

Re: [FTC]: Help? Driver phone will not detect new Op Mode
 
Yes, there are no other FTC apps on the phones, and I even deleted all OP Modes apps the kids had created and installed, except the one we are trying to use.

No luck. Only shows preinstalled Op Modes.

Christopher149 25-09-2015 23:26

Re: [FTC]: Help? Driver phone will not detect new Op Mode
 
I haven't looked into App Inventor much, but Android Studio has a manifest / registry file of op modes as part of the code. Does App Inventor have something similar that you need to add your op mode to?

Andy Sheu 30-09-2015 22:57

Re: [FTC]: Help? Driver phone will not detect new Op Mode
 
You need to add the new OpMode to the list of OpModes in FtcOpModeRegister.java.

Add the following line inside the preexisting register method:
manager.register("K9TeleOp", K9TeleOp.class);
Replace K9TeleOp with whatever you want to name the OpMode and replace K9TeleOp.class with the class name.


All times are GMT -5. The time now is 17:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi