Home - addonovan/ftc-ext GitHub Wiki

Introduction

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.

Installation

New project

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).

Pre-existing Project

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:

  1. Do you hate yourself?
  2. Is it worth the effort?
  3. Do you realize that you'll have to rewrite your OpModes anyways?
  4. Do you hate documentation?

If you answered 'yes' to those and you still want to do this, follow these steps:

  1. Download the .aar from the latest release
  2. Move the file to the 'FtcRobotController/libs' folder
  3. Add this to 'FtcRobotController/build.gradle' where you see similar lines
    • compile(name:'ftcext.<version>' ext:'aar')
  4. 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);
⚠️ **GitHub.com Fallback** ⚠️