RIT VEXU Core API
|
#include <linear_system.h>
Public Member Functions | |
LinearSystem (const MatrixA &A, const MatrixB &B, const MatrixC &C, const MatrixD &D) | |
MatrixA | A () |
MatrixB | B () |
const std::tuple< std::tuple< MatrixA, MatrixB > > & | discAB (const double &dt) |
MatrixC | C () |
MatrixD | D () |
VectorX | compute_X (const VectorX &x, const VectorU &u, double dt) |
VectorY | compute_Y (const VectorX &x, const VectorU &u) |
This class represents a state-space model of a linear system.
It contains the following continuous matrices: A, System matrix B, Input matrix C, Output matrix D, Feedthrough matrix
|
inline |
Constructs a discrete linear system with the given continuous matrices.
A | The continuous system matrix |
B | The continuous input matrix |
C | The output matrix |
D | The feedthrough matrix |
|
inline |
Returns the continuous system matrix A.
|
inline |
Returns the continuous input matrix B.
|
inline |
Returns the output matrix C.
|
inline |
Computes the new state vector given the previous state vector, an input vector, and the timestep in seconds.
x | The current state vector. |
u | The input vector. |
dt | The timestep in seconds. |
|
inline |
Computes the output vector given a state and an input.
x | The state vector. |
u | The input vector. |
|
inline |
Returns the feedthrough matrix D.
|
inline |
Returns a tuple of A and B after being discretized.