|
| LinearSystem (const Matrixd< States, States > &A, const Matrixd< States, Inputs > &B, const Matrixd< Outputs, States > &C, const Matrixd< Outputs, Inputs > &D) |
| Constructs a discrete plant with the given continuous system coefficients. More...
|
|
| LinearSystem (const LinearSystem &)=default |
|
LinearSystem & | operator= (const LinearSystem &)=default |
|
| LinearSystem (LinearSystem &&)=default |
|
LinearSystem & | operator= (LinearSystem &&)=default |
|
const Matrixd< States, States > & | A () const |
| Returns the system matrix A. More...
|
|
double | A (int i, int j) const |
| Returns an element of the system matrix A. More...
|
|
const Matrixd< States, Inputs > & | B () const |
| Returns the input matrix B. More...
|
|
double | B (int i, int j) const |
| Returns an element of the input matrix B. More...
|
|
const Matrixd< Outputs, States > & | C () const |
| Returns the output matrix C. More...
|
|
double | C (int i, int j) const |
| Returns an element of the output matrix C. More...
|
|
const Matrixd< Outputs, Inputs > & | D () const |
| Returns the feedthrough matrix D. More...
|
|
double | D (int i, int j) const |
| Returns an element of the feedthrough matrix D. More...
|
|
StateVector | CalculateX (const StateVector &x, const InputVector &clampedU, units::second_t dt) const |
| Computes the new x given the old x and the control input. More...
|
|
OutputVector | CalculateY (const StateVector &x, const InputVector &clampedU) const |
| Computes the new y given the control input. More...
|
|
template<int States, int Inputs, int Outputs>
class frc::LinearSystem< States, Inputs, Outputs >
A plant defined using state-space notation.
A plant is a mathematical model of a system's dynamics.
For more on the underlying math, read https://file.tavsys.net/control/controls-engineering-in-frc.pdf.
- Template Parameters
-
States | Number of states. |
Inputs | Number of inputs. |
Outputs | Number of outputs. |