-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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);
While Kotlin isn't required, I'm definitely a Kotlin fanboy, and it shows in how much nicer the API works when used in Kotlin (also, the fact that the actual library part of this project is all Kotlin).
Try it out! It's made by JetBrains, the same people who write Intellij (off which Android Studio is built).
- Intro & Installation
-
OpModes
- [Lifecycle](OpMode Lifecycle)
- [Profiles & Configuration](Profiles & Configuration)
- Types
- Hardware
- [Access](Hardware Access)
- Extension Framework
- [Advanced Hardware](Advanced Hardware)
- [Custom Hardware Extensions](Custom Hardware Extensions)
- Utils
- Intervals
- [Motor Assembly](Motor Assembly)
- [Task Management](Task Management)