Skip to content

Commit b27d981

Browse files
committed
debug ukf
1 parent 3081143 commit b27d981

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/estimator/kalman.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,7 @@ noise, respectively.
565565
ISBN9780470045343.
566566
"""
567567
function 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.
569-
nym, nx̂, nσ = estim.nym, estim.nx̂, estim.
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̂)
572569
end
573570

574571
"""
@@ -583,6 +580,9 @@ for the equations. If `isnothing(x̂)`, only the covariance `P̂` is updated.
583580
function 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.
584+
nym, nx̂, nσ = estim.nym, estim.nx̂, estim.
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

Comments
 (0)