Skip to content

Commit de99e63

Browse files
committed
minor doc correction
1 parent 4430453 commit de99e63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ Kalman Filter similar to the previous one (``\mathbf{y^m} = θ`` and ``\mathbf{y
167167
```@example 1
168168
h2(x, _ ) = [180/π*x[1], x[2]]
169169
nu, nx, ny = 1, 2, 2
170-
model2 = NonLinModel(f, h2, Ts, nu, nx, ny)
171-
estim2 = UnscentedKalmanFilter(model2; σQ, σR, nint_u, σQint_u, i_ym=[1])
170+
model2 = NonLinModel(f , h2, Ts, nu, nx, ny)
172171
plant2 = NonLinModel(f_plant, h2, Ts, nu, nx, ny)
172+
estim2 = UnscentedKalmanFilter(model2; σQ, σR, nint_u, σQint_u, i_ym=[1])
173173
```
174174

175-
The `plant2` object is also required since [`sim!`](@ref) expects that the output vector of
176-
`plant` argument corresponds to the model output vector in `mpc` argument. We can now define
177-
the ``J_E`` function and the `empc` controller:
175+
The `plant2` object based on `h2` is also required since [`sim!`](@ref) expects that the
176+
output vector of `plant` argument corresponds to the model output vector in `mpc` argument.
177+
We can now define the ``J_E`` function and the `empc` controller:
178178

179179
```@example 1
180180
function JE(UE, ŶE, _ )

0 commit comments

Comments
 (0)