Home - addonovan/ftc-ext GitHub Wiki
This guide assumes that you already have some level of experience with the standard Qualcomm program layout. At the moment, this library mostly exists to remove some of the annoyances that are common when dealing with Qualcomm's OpMode structure.
Just fork this repository and edit the FtcRobotController
module to include your source files and stuff. Whenever FtcTechNH/ftc_app
updates, I'll update this repository for support as quickly as possible. And a simple git pull
will update everything with minimal conflicts (if any).
Importing the project into an existing project has some issues I haven't really been able to resolve yet, so, here are some questions to make you re-think this:
- Do you hate yourself?
- Is it worth the effort?
- Do you realize that you'll have to rewrite your OpModes anyways?
- Do you hate documentation?
If you answered 'yes' to those and you still want to do this, follow these steps:
- Download the .aar from the latest release
- Move the file to the 'FtcRobotController/libs' folder
- Add this to 'FtcRobotController/build.gradle' where you see similar lines
compile(name:'ftcext.<version>' ext:'aar')
- Perform the edits below
Open up com.qualcomm.ftcrobotcontroller.FtcRobotControllerActivity
and find the line in requestRobotSetup()
that says:
eventLoop = new FtcEventLoop(factory, new FtcOpModeRegister(), callback, this);
and change it to
eventLoop = new FtcEventLoop(factory, new com.addonovan.ftcext.control.OpModeRegistrar(), callback, this);