kV

open class kV : SystemController

Velocity feedforward gain. Used to counter electromotive force and drag.

Note: This feedforward is the exact same as the kF gain on the PIDFController.

Author

Lucas Bubner, 2025

Since

8.0.0

Constructors

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