kA

open class kA : SystemController

Acceleration feedforward gain. Used to induce acceleration based on changes over time to the setpoint.

Differs from a conventional kA gain applied to a target acceleration, rather, attempts to apply a gain to the rate of change of the setpoint.

Author

Lucas Bubner, 2025

Since

8.0.0

Constructors

Link copied to clipboard
constructor(kA: Double)
Create a new kA gain.

Inherited properties

Link copied to clipboard
A null controller that does nothing.

Functions

Link copied to clipboard
open fun calculate(ignored: Double, setpoint: Double): Double
Calculate the next output of this control algorithm.
Link copied to clipboard
Gets the current coefficients for this controller.
Link copied to clipboard
open fun reset()
Reset this controller back to an un-accumulated state, if applicable.
Link copied to clipboard
open fun setCoefficients(@NonNull coeffs: Array<Double>)
Sets the coefficients for this controller.

Inherited functions

Link copied to clipboard
Composes this controller with another controller, returning a new controller that is the composition of the two by summing the outputs of each controller together.
Composes this controller with another controller, returning a new controller that is the composition of the two.
Link copied to clipboard
Get the PIDF controller associated with this controller, if applicable.
Link copied to clipboard
open fun setCoefficients(@NonNull coeffs: Array<Double>)
Sets the coefficients for this controller.