Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericWantiez committed Feb 1, 2024
1 parent 0ace6bf commit 4791835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/extended-kalman-filter/script.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for t in 1:nstep
end

function ekf_correct(obs, state::Gaussian, model::PendulumModel)
Jf = jacobian(x -> f(x, model), state.μ) # We should not have to recompute these jacobians
Jf = jacobian(x -> f(x, model), state.μ)
Jh = jacobian(x -> h(x, model), state.μ)

S = model.R + Jh * state.Σ * Jh'
Expand Down

0 comments on commit 4791835

Please sign in to comment.