Skip to content

Commit 0538b26

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6a042c9 commit 0538b26

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

doc/controllers/IntegralStateFeedbackLqi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ At equilibrium $r - y = 0$, so $x_{i}$ stops changing, and the control law holds
5151

5252
## Complexity Analysis
5353

54-
| Case | Time | Space | Notes |
55-
|--------|------------------------------|------------------------------|------------------------------------|
56-
| Design | $O((n+p)^3)$ | $O((n+p)^2)$ | DARE iteration on augmented system |
57-
| Update | $O(m(n+p))$ | $O(p)$ | Two matrix-vector products |
54+
| Case | Time | Space | Notes |
55+
|--------|--------------|--------------|------------------------------------|
56+
| Design | $O((n+p)^3)$ | $O((n+p)^2)$ | DARE iteration on augmented system |
57+
| Update | $O(m(n+p))$ | $O(p)$ | Two matrix-vector products |
5858

5959
Design is a one-time offline computation. The per-sample update cost is dominated by the two
6060
gain-state products and the integral accumulation.

numerical/controllers/implementations/IntegralStateFeedbackLqi.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ namespace controllers
8787

8888
template<typename T, std::size_t StateSize, std::size_t InputSize, std::size_t OutputSize>
8989
OPTIMIZE_FOR_SPEED
90-
typename IntegralStateFeedbackLqi<T, StateSize, InputSize, OutputSize>::InputVector
91-
IntegralStateFeedbackLqi<T, StateSize, InputSize, OutputSize>::ComputeControl(
92-
const StateVector& x,
93-
const OutputVector& reference,
94-
const OutputVector& measured)
90+
typename IntegralStateFeedbackLqi<T, StateSize, InputSize, OutputSize>::InputVector
91+
IntegralStateFeedbackLqi<T, StateSize, InputSize, OutputSize>::ComputeControl(
92+
const StateVector& x,
93+
const OutputVector& reference,
94+
const OutputVector& measured)
9595
{
9696
auto error = reference - measured;
9797
integral = integral + error * sampleTime;

0 commit comments

Comments
 (0)