File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 203
203
(estim:: StateEstimator )(d= estim. buffer. empty) = evaloutput (estim, d)
204
204
205
205
@doc raw """
206
- preparestate!(estim::StateEstimator, ym, d=estim.model.dop ) -> x̂
206
+ preparestate!(estim::StateEstimator, ym, d=[] ) -> x̂
207
207
208
208
Prepare `estim.x̂0` estimate with meas. outputs `ym` and dist. `d` for the current time step.
209
209
@@ -231,7 +231,7 @@ julia> x̂ = preparestate!(estim1, [1])
231
231
0.0
232
232
```
233
233
"""
234
- function preparestate! (estim:: StateEstimator , ym, d= estim. model . dop )
234
+ function preparestate! (estim:: StateEstimator , ym, d= estim. buffer . empty )
235
235
if estim. direct
236
236
validate_args (estim, ym, d)
237
237
y0m, d0 = remove_op! (estim, ym, d)
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ defined as ``d(t) = t``. The functions can be implemented in two possible ways:
80
80
81
81
`Ts` is the sampling time in second. `nu`, `nx`, `ny` and `nd` are the respective number of
82
82
manipulated inputs, states, outputs and measured disturbances. The keyword argument `p`
83
- is the parameters of the model passed to the two functions. It can be of any Julia object
84
- but use a mutable type if you want to change them later e.g.: a vector.
83
+ is the parameters of the model passed to the two functions. It can be any Julia objects but
84
+ use a mutable type if you want to change them later e.g.: a vector.
85
85
86
86
!!! tip
87
87
Replace the `d` or `p` argument with `_` in your functions if not needed (see Examples below).
You can’t perform that action at this time.
0 commit comments