FTControl Setup Guide

This guide helps you integrate ftcontrol into your FTC Robot Controller.

Clone FTC Robot Controller

Start by cloning the official FTC repository:

git clone https://github.com/FIRST-Tech-Challenge/FtcRobotController
bash

[Optional] Enable Kotlin Support

You only need this if you want to use Kotlin instead of Java.

Edit TeamCode/build.gradle:

build.gradle
//ADD THIS 
apply plugin: 'org.jetbrains.kotlin.android'
//

android {
    namespace = 'org.firstinspires.ftc.teamcode'

    //ADD THIS 
    kotlinOptions {
        jvmTarget = '1.8'
    }
    
    compileSdk 35

    defaultConfig {
        minSdk 24
    }
    //

    packagingOptions {
        jniLibs.useLegacyPackaging true
    }
}
groovy

And in the root build.gradle:

build.gradle
buildscript {
    ...
    dependencies {
        //ADD THIS 
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0"
        //
    }
}
groovy

Add FTControl to Your Project

In your root build.gradle or settings.gradle, add this Maven repository:

build.gradle
allprojects {
    repositories {
        mavenCentral()
        google()
        maven {
            url = "https://mymaven.bylazar.com/releases"
        }
    }
}
groovy

Then in your module’s build.gradle:

build.gradle
dependencies {
    implementation "com.bylazar:ftcontrol:VERSION"
}
groovy
Replace VERSION with the latest version: 0.0.0.

Before Updating: Check the Changelog

Before updating to the latest version of ftcontrol, it's essential to check the changelog for any breaking changes, bug fixes, or new features.

Visit Changelog

A library by Lazar from 19234 ByteForce.