Skip to content

Configuring with the FTC Dashboard

It is common to tune your controllers with the FTC Dashboard. To support this, NextControl allows passing a coefficients/parameters object for each element instead of directly passing the coefficients.

For example:

kotlin
// in a class with @Config

companion object Constants {
    @JvmField
    val coefficients = PIDCoefficients(p, i, d)
}

val controlSystem = controlSystem {
    posPid(coefficients)
}

Now, our PID is configurable from the dashboard.

Although this example is for a PID element, every other element in NextControl has a coefficients/parameters object as well.