Class LinearQuadraticRegulator<States extends Num,​Inputs extends Num,​Outputs extends Num>

java.lang.Object
edu.wpi.first.math.controller.LinearQuadraticRegulator<States,​Inputs,​Outputs>
Type Parameters:
States - Number of states.
Inputs - Number of inputs.
Outputs - Number of outputs.

public class LinearQuadraticRegulator<States extends Num,​Inputs extends Num,​Outputs extends Num>
extends Object
Contains the controller coefficients and logic for a linear-quadratic regulator (LQR). LQRs use the control law u = K(r - x).

For more on the underlying math, read https://file.tavsys.net/control/controls-engineering-in-frc.pdf.