TigerLib is a FRC library which holds many different utilities for programming a FRC robot. These utilities include many tools such as OI tools, and Math functions.
This is assuming you have already created a wpilib / gradle project.
-
Open the
build.gradle
file. -
Add or edit the following lines to use Java 17.
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
- Add the following to add the required repositories to your project.
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven {
url 'https://maven.photonvision.org/repository/internal'
}
maven {
url 'https://maven.photonvision.org/repository/snapshots'
}
}
- Add the dependency within the
dependencies
block.
dependencies {
// check icons above for most recent version
// do not include the 'v' in the version.
implementation 'com.github.Tigerbotics7125:tigerlib:VERSION'
// ex: implementation 'com.github.Tigerbotics7125:tigerlib:2023.0.0'
// ... other dependencies
}
- Execute a the gradle build task, either in your terminal with
./gradlew build
or with the VSCode extension (Ctrl/Cmd + Shift + P, then search for:> Gradle: Run a Gradle Build
).
Code documentation and usage examples are available below:
If you still need help, create an issue here.
All changes need to be commited atomicly and documented fully.
- In numerical order:
- StuyPulse 694 - Conversion class.
- Spectrum 3847 - Some OI concepts.