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:
robotincludeshardware,control, andtelemetry.hardwareincludescontrol.controlincludes theunits,linalg, andutilhelper libraries.
For most robot projects, that means adding only robot.
If you use Pedro Pathing, add pedro instead (see Pedro Pathing below).
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'}Pedro Pathing
Section titled “Pedro Pathing”The pedro module connects Pedro Pathing to NextFTC.
It includes robot and Pedro Pathing’s com.pedropathing:revhub library,
so add it instead of the robot dependency.
Also add Ivy’s pedro module for the path-following commands:
implementation 'dev.nextftc.v2:pedro:0.4.0'implementation 'com.pedropathing.ivy:pedro:1.1.1'See Pedro Pathing for setup and usage.
Snapshots
Section titled “Snapshots”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'Report snapshot bugs and feedback in the NextFTC Discord server.