pySimBlocks.blocks.controllers.state_feedback¶
- class pySimBlocks.blocks.controllers.state_feedback.StateFeedback(name: str, K: ArrayLike, G: ArrayLike, sample_time: float | None = None)[source]¶
Bases:
BlockDiscrete-time state-feedback controller block.
Implements a static discrete-time state-feedback control law:
u = G @ r - K @ x
Both inputs must be column vectors. No implicit flattening is performed.
- K¶
State feedback gain matrix of shape (m, n).
- G¶
Reference feedforward gain matrix of shape (m, p).
- direct_feedthrough = True¶
True if outputs depend directly on inputs.
- initialize(t0: float) None[source]¶
Set the output to zero, or compute u if inputs are already available.
- Parameters:
t0 – Initial simulation time in seconds.