Skip to content

Installation

To install NextFTC in an FTC robot project, open TeamCode/build.gradle, and add one of the following to your dependencies block:

implementation 'dev.nextftc.v2:control:0.3.0'
implementation 'dev.nextftc.v2:hardware:0.3.0'
implementation 'dev.nextftc.v2:robot:0.3.0'

You only need the last module you plan to use, because each one pulls its dependencies:

  • robot includes hardware and control.
  • hardware includes control.
  • control includes the units and linalg helper libraries.

For most robot projects, that means adding only robot.

If you are using the hardware and/or robot modules, add the following to the repositories block to allow Gradle to find the necessary dependencies.

maven {
url 'https://repo.dairy.foundation/releases'
}

Snapshots are builds of the latest unreleased code for testing and iteration. Features added in snapshot versions may not work as expected and may also change in between snapshot builds. API documentation for snapshot versions can be found at kdoc.nextftc.dev/snapshot.

Add the Maven Central snapshots repository to the repositories block:

maven {
url 'https://central.sonatype.com/repository/maven-snapshots/'
}

Then use a snapshot version instead of the release dependency (there should only be one dev.nextftc.v2:robot dependency):

implementation 'dev.nextftc.v2:control:0.3.1-SNAPSHOT'
implementation 'dev.nextftc.v2:hardware:0.3.1-SNAPSHOT'
implementation 'dev.nextftc.v2:robot:0.3.1-SNAPSHOT'

If you experience bugs or have feedback about a snapshot, feel free to tell us at the NextFTC discord server!