-
Notifications
You must be signed in to change notification settings - Fork 3
Importing Into Your Project
Johan Vandegriff edited this page May 28, 2022
·
13 revisions
Importing the library into the ftc-app is extremely simple!
-
Download the latest release
EVLib-release.aar
. You can also click here. -
Copy the downloaded library to the
(your project root)/libs/
directory. -
Now you need to tell gradle that EVLib is a dependency. In android studio, edit the
TeamCode/build.gradle
file and add the following lines:
dependencies {
compile(name: 'EVLib-release', ext: 'aar')
}
Attaching the source (Optional):
-
Download the repository as a zip file and extract it.
-
When a yellow bar appears at the top of the screen:
- Click on the blue link that says "Choose Sources..." and a window will pop up.
- Choose the "EVLib-master/EVLib/src/main/java directory" from the file you downloaded.
You are done! You can look at the Sample Code to get you started on using the library.
This guide will step through the basics of how to set up OpModes using EVLib.
- Importing Into Your Project
- Sample Code
- Using EVLib Minimally
- Logging Example
- Robot Configuration
- Basic TeleOp Program
- Basic Autonomous Program
- Customizing StateMachineBuilder
- Servo Presets
- Adding Servos to the Configuration
- Adding Servos to TeleOp
- Adding Servos to Autonomous
- Vuforia and OpenCV Beacon Color Detection