Skip to content

Commit 94978a2

Browse files
committed
changed: preparestate! default d argument as empty vector
instead of `dop` Empty vector is a better default since the method will fails if the estimator is supposed to received measured disturbances and the user forget to provide the argument.
1 parent b5bc3f7 commit 94978a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/estimator/execute.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ end
203203
(estim::StateEstimator)(d=estim.buffer.empty) = evaloutput(estim, d)
204204

205205
@doc raw"""
206-
preparestate!(estim::StateEstimator, ym, d=estim.model.dop) -> x̂
206+
preparestate!(estim::StateEstimator, ym, d=[]) -> x̂
207207
208208
Prepare `estim.x̂0` estimate with meas. outputs `ym` and dist. `d` for the current time step.
209209
@@ -231,7 +231,7 @@ julia> x̂ = preparestate!(estim1, [1])
231231
0.0
232232
```
233233
"""
234-
function preparestate!(estim::StateEstimator, ym, d=estim.model.dop)
234+
function preparestate!(estim::StateEstimator, ym, d=estim.buffer.empty)
235235
if estim.direct
236236
validate_args(estim, ym, d)
237237
y0m, d0 = remove_op!(estim, ym, d)

0 commit comments

Comments
 (0)