kG

open class kG : SystemController

Constant feedforward gain. Used to overcome constant forces such as gravity.

Author

Lucas Bubner, 2025

Since

8.0.0

Constructors

Link copied to clipboard
constructor(kG: Double)
Create a new kG 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 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 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.