Skip to content

Commit ddf460e

Browse files
committed
minor doc correction
1 parent 2d79583 commit ddf460e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/estimator/internal_model.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function update_estimate!(estim::InternalModel, u, ym, d=empty(estim.x̂))
215215
end
216216

217217
@doc raw"""
218-
init_estimate!(estim::InternalModel, ::LinModel, u, ym, d)
218+
init_estimate!(estim::InternalModel, model::LinModel, u, ym, d)
219219
220220
Init `estim.x̂` \ `x̂d` \ `x̂s` estimate at steady-state for [`InternalModel`](@ref)s.
221221
@@ -231,11 +231,11 @@ of the measured ``\mathbf{ŷ_s^m} = \mathbf{y^m} - \mathbf{ŷ_d^m}`` and unmea
231231
```
232232
See [`init_internalmodel`](@ref) for details.
233233
"""
234-
function init_estimate!(estim::InternalModel, ::LinModel, u, ym, d)
234+
function init_estimate!(estim::InternalModel, model::LinModel, u, ym, d)
235235
x̂d, x̂s = estim.x̂d, estim.x̂s
236236
x̂d[:] = (I - estim.Â)\(estim.B̂u*u + estim.B̂d*d)
237-
ŷd = h(estim.model, x̂d, d)
238-
ŷs = zeros(estim.model.ny)
237+
ŷd = h(model, x̂d, d)
238+
ŷs = zeros(model.ny)
239239
ŷs[estim.i_ym] = ym - ŷd[estim.i_ym] # ŷs=0 for unmeasured outputs
240240
x̂s[:] = (I-estim.Âs)\estim.B̂s*ŷs
241241
return nothing

0 commit comments

Comments
 (0)