@@ -565,10 +565,7 @@ noise, respectively.
565565 ISBN9780470045343.
566566"""
567567function update_estimate! (estim:: UnscentedKalmanFilter{NT} , u, ym, d) where NT<: Real
568- x̂, P̂, Q̂, R̂, K̂ = estim. x̂, estim. P̂, estim. Q̂, estim. R̂, estim. K̂
569- nym, nx̂, nσ = estim. nym, estim. nx̂, estim. nσ
570- γ, m̂, Ŝ = estim. γ, estim. m̂, estim. Ŝ
571- return update_estimate_ukf! (estim, u, ym, d, P̂, x̂)
568+ return update_estimate_ukf! (estim, u, ym, d, estim. P̂, estim. x̂)
572569end
573570
574571"""
@@ -583,6 +580,9 @@ for the equations. If `isnothing(x̂)`, only the covariance `P̂` is updated.
583580function update_estimate_ukf! (
584581 estim:: StateEstimator{NT} , u, ym, d, P̂, x̂= nothing
585582) where NT<: Real
583+ Q̂, R̂, K̂ = estim. Q̂, estim. R̂, estim. K̂
584+ nym, nx̂, nσ = estim. nym, estim. nx̂, estim. nσ
585+ γ, m̂, Ŝ = estim. γ, estim. m̂, estim. Ŝ
586586 # --- initialize matrices ---
587587 X̂, X̂_next = Matrix {NT} (undef, nx̂, nσ), Matrix {NT} (undef, nx̂, nσ)
588588 ŷm = Vector {NT} (undef, nym)
0 commit comments